'Create a new Rules object based on the provided dict of rules.'

def set_rules(self, rules, overwrite=True):

    rules_obj = policy.Rules(rules, self.default_rule)
    self.enforcer.set_rules(rules_obj, overwrite)
