'return whether rules are equal'

def __eq__(self, other):

    return ((self.attribute_restrictions == other.attribute_restrictions) and (self.api_groups == other.api_groups) and (self.resources == other.resources) and (self.verbs == other.verbs))
