how to search a list of tuples in python,[x[0] for x in a]