check if value exists in list of dictionary python