1>>> dict_filter = lambda x, y: dict([ (i,x[i]) for i in x if i in set(y) ])
2>>> large_dict = {"a":1,"b":2,"c":3,"d":4}
3>>> new_dict_keys = ("c","d")
4>>> small_dict=dict_filter(large_dict, new_dict_keys)
5>>> print(small_dict)
6{'c': 3, 'd': 4}
7>>>