def send_presence(self):
    if self.xmpp_client.xmlstream:
        self.presence.available(statuses={None: self.status})
def send_presence(self):
    if self.xmpp_client.xmlstream:
        self.presence.available(statuses={None: self.status})