You can use the following code:
keys = set(l1).intersection(set(d1.keys()))
result = {k:d1[k] for k in keys}
EDIT: As commenters suggest you can replace the first line with, in Python 2.x:
keys = set(l1).intersection(d1)
And in Python 3.x:
keys = d1.keys() & l1