python check if item is in list of tuples