exampleSet = [{'type': 'type1'}, {'type': 'type2'}, {'type': 'type2'}, {
    'type': 'type3'}]
keyValList = ['type2', 'type3']
expectedResult = [d for d in exampleSet if d['type'] in keyValList]
python filter list of dictionaries based on key value