[python] Loop backwards using indices in Python?