def filter_dict(d, exclude):
ret = {}<EOL>for key, value in d.items():<EOL><INDENT>if key not in exclude:<EOL><INDENT>ret.update({key: value})<EOL><DEDENT><DEDENT>return ret<EOL>
Return a new dict with specified keys excluded from the origional dict

    Args:
        d (dict): origional dict
        exclude (list): The keys that are excluded