'Set the payload to the given value.
Optional charset sets the message\'s default character set.  See
set_charset() for details.'

def set_payload(self, payload, charset=None):

    self._payload = payload
    if (charset is not None):
        self.set_charset(charset)
    return
