def delete_dict_entries(dict, *keys):
    """
    Deletes all specified keys from the dictionary if they're present.
    Does not raise an exception if any key (to be deleted) is not present.
    """
    for k in keys:
        try:
            del dict[k]
        except KeyError:
            pass
    return dict
