code: def setattrs_from_paxos(self, paxos):
          
          changes = {}
          for name in self.paxos_variables:
              paxos_value = getattr(paxos, name)
              if paxos_value != getattr(self, name, None):
                  self.print_if_verbose("{} {}: {}".format(self.network_uid, name, paxos_value))
                  changes[name] = paxos_value
                  setattr(self, name, paxos_value)
          if changes:
              self.__trigger_event__(
                  event_class=self.AttributesChanged,
                  changes=changes
              )
docs: Registers changes of attribute value on Paxos instance.