Using The Index Function In Python