How to get the index of a item of tuple in python?