def __init__(self, typ=None, queryNS=None, attrs={}, to=None, frm=None, payload=[], xmlns=NS_CLIENT, node=None):
        Protocol.__init__(self, 'iq', to=to, typ=typ, attrs=attrs, frm=frm, xmlns=xmlns, node=node)
        if payload: self.setQueryPayload(payload)
        if queryNS: self.setQueryNS(queryNS)
Create Iq object. You can specify type, query namespace
dataset/ETHPy150Open CouchPotato/CouchPotatoServer/libs/xmpp/protocol.py/Iq.__init__