def unset_static_role(self, role):
    if (not self.has_static_role(role)):
        return
    self.static_roles ^= role.mask
def unset_static_role(self, role):
    if (not self.has_static_role(role)):
        return
    self.static_roles ^= role.mask