python check if key value pair exists in list of dictionaries