'Convert raw message to :class:`Message` instance.'

def message_to_python(self, raw_message):

    if (not isinstance(raw_message, self.Message)):
        return self.Message(payload=raw_message, channel=self)
    return raw_message
