'Initialize a new <iq> stanza with an \'id\' value.
Overrides StanzaBase.__init__.'

def __init__(self, *args, **kwargs):

    StanzaBase.__init__(self, *args, **kwargs)
    if (self['id'] == ''):
        if (self.stream is not None):
            self['id'] = self.stream.new_id()
        else:
            self['id'] = '0'
