def dict_select(d, keys):
    """
    Return a dict only with keys in the list of keys.
    example:
    clust_kw = 'min_density min_size haircut penalty'.split()
    clust_kwargs = ut.dict_select(kwargs, clust_kw)
    """
    return dict([(k,d[k]) for k in keys if k in d])