def pick(dct, *keys):
copy = dict()<EOL>for key in keys:<EOL><INDENT>if key in dct.keys():<EOL><INDENT>copy[key] = dct[key]<EOL><DEDENT><DEDENT>return copy<EOL>
Returns a copy of the dictionary filtered to only have values for the
        whitelisted keys (or list of valid keys)

        >>> pick({"name": "moe", "age": 50, "userid": "moe1"}, "name", "age")
        {'age': 50, 'name': 'moe'}