Fix xmpp authentication for python3