def gotMessage(self, message_id, message):
d = defer.maybeDeferred(self._handle_message, message)<EOL>d.addCallback(self.generate_response)<EOL>d.addCallback(lambda resp: self.reply(message_id, resp))<EOL>return d<EOL>
Message comes in the data structure as:
            {
                'method': 'some_method',
                'args': ['list', 'of', 'args'],
                'kwargs': {'key': 'value'}
            }