[python] Get loop count inside a Python FOR loop