def RestrictDict( aDict, restrictSet ):
    """Return a dict which has the mappings from the original dict only for keys in the given set"""
    restrictSet = frozenset( restrictSet )
    return dict( item for item in aDict.items() if item[0] in restrictSet )