check if key value exists in list of dictionary python