python check if element in list of dictionaries