def message_received(self, message):
    if message.command:
      handler_name = '%s_command' % (message.command,)
      handler = getattr(self, handler_name, None)
      if handler:
        handler(message)
      else:
        self.unhandled_command(message)
    else:
      self.text_message(message)
Necessary for making this object picklable
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/webapp/xmpp_handlers.py/CommandHandlerMixin.message_received--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index.__setstate__