How to search a list of tuples in Python,[x[0] for x in a]