Jquery Find Index Of Object In Python Definition