def messageMethod(name, parameters):
 def dispatchMethod(self, *arguments):
  self.dispatcher(name, dict(zip(parameters, arguments)))
 dispatchMethod.__name__ = name
 return dispatchMethod

def messageMethod ( name , parameters ) : def dispatchMethod ( self , * arguments ) : self . dispatcher ( name , dict ( zip ( parameters , arguments ) ) ) dispatchMethod . __name__ = name return dispatchMethod
creates method for dispatching messages .