take(f) a list of keys and fill in others with val

def takef(d,l,val=None):
    '''take(f) a list of keys and fill in others with val'''
    return {i:(d[i] if i in d else val)
            for i in l};