<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def apply_rule_changes(self):
 """ Makes the security group rules match what is defined in the Bang config file. """

        # TODO: add error handling
        for rule in self.delete_these_rules:
            self.consul.delete_secgroup_rule(rule)
            log.info("Revoked: %s" % rule)
        for rule in self.create_these_rules:
            args = rule + (self.name, )
            self.consul.create_secgroup_rule(*args)
            log.info("Authorized: %s" % str(rule))