'Process the session_start event.
Typical actions for the session_start event are
requesting the roster and broadcasting an initial
presence stanza.
Arguments:
event -- An empty dictionary. The session_start
event does not provide any additional
data.'

def start(self, event):

    self.send_presence()
    self.get_roster()
    try:
        rtt = self['xep_0199'].ping(self.pingjid, timeout=10)
        logging.info('Success!    RTT:    %s', rtt)
    except IqError as e:
        logging.info('Error    pinging    %s:    %s', self.pingjid, e.iq['error']['condition'])
    except IqTimeout:
        logging.info('No    response    from    %s', self.pingjid)
    finally:
        self.disconnect()
