code: def receive(self, msg):
          '''
          Message dispatching function. This function accepts any PaxosMessage subclass and calls
          the appropriate handler function
          '''
          handler = getattr(self, 'receive_' + msg.__class__.__name__.lower(), None)
          if handler is None:
              raise InvalidMessageError('Receiving class does not support messages of type: ' + msg.__class__.__name__)
          return handler(msgf receive(self, msg):
          '''
          Message dispatching function. This function accepts any PaxosMessage subclass and calls
          the appropriate handler function
          '''
          handler = getattr(self, 'receive_' + msg.__class__.__name__.lower(), None)
          if handler is None:
              raise InvalidMessageError('Receiving class does not support messages of type: ' + msg.__class__.__name__)
          return handler(msg)
docs: Message dispatching function. This function accepts any PaxosMessage subclass and calls
          the appropriate handler function