def copy_keys_except(dic, *keys):
    """Return a copy of the dict without the specified items.
    """
    ret = dic.copy()
    for key in keys:
        try:
            del ret[key]
        except KeyError:
            pass
    return ret