def select_sublist(list_of_dicts, **kwargs):
    return [d for d in list_of_dicts if all(d.get(k) == kwargs[k] for k in
        kwargs)]
subdata = select_sublist(data, key1='value1')
Filtering dictionaries and creating sub-dictionaries based on keys/values in Python?