Logging over OTR and XMPP in Python