class Root: def __init__(self, args): self.args = args self.xmpp = Client(self.args.jid, self.args.password, pubsub=False, priority=127) self.xmpp.run(args.server, threaded=True) self.pubsub = self.xmpp['xep_0060']