def subset_dictionary(bigdict, wanted_keys):
    """
    Given a dictionary (bigdict) including several keys and a list of keys
    in list format in wanted_keys

    Return a subsetted dictionary from bigdict with only wanted keys
    """

    return dict((k, bigdict[k]) for k in wanted_keys if k in bigdict)