def XMPPClientFactory(jid, password):
 a = XMPPAuthenticator(jid, password)
 return xmlstream.XmlStreamFactory(a)

def XMPPClientFactory ( jid , password ) : a = XMPPAuthenticator ( jid , password ) return xmlstream . XmlStreamFactory ( a )
client factory for xmpp 1 .