The login code is almost an exact copy of the java code, translated into python. I'm going to share the code eventually, but not yet. As for communication with the server, XML stanzas are binary encoded before being sent, and received data are decoded into XML stanzas. Right now it's only a matter of completing the UI. And I think this will be real soon