Freezing python script wtih use xmppy (Jabber)
===

I am try made primitive bot with use xmpppy (for learning).
I wrote script:
**Bot.py**

    import xmpp
   
    from jabber_bot import JabberBot

    config = {'jid': 'myname@example.org', 'pass': 'mypassword'}

    def message_handler(conn, mess):
       text = mess.getBody()
       mystr = text+'\n'
       mystr = mystr.encode('utf-8')
       print mystr
       text = ''
       mystr = ''
    
    bot = JabberBot(config['jid'], config['pass'])
    bot.register_handler('message', message_handler)
    bot.start()

**jabber_bot.py**

    import sys, xmpp

    class JabberBot:
    def __init__(self, jid, password):
        jid = xmpp.JID(jid)
        self.user, self.server, self.password = jid.getNode(), jid.getDomain(), password
        self.connect()
        self.auth()
    def connect(self):
        self.conn = xmpp.Client(self.server, debug = [])
        conn_result = self.conn.connect()
        if not conn_result:
            print "Can't connect to server!\n"
            sys.exit(1)
    def auth(self): 
        auth_result = self.conn.auth(self.user, self.password)
        if not auth_result:
            print "Can't to authorize!\n"
            sys.exit(1)
    
    def register_handler(self, name, handler): 
        self.conn.RegisterHandler(name, handler)
    
    def step_on(self):
        try:
            if not self.conn.isConnected:
                print 'disconnected'
                self.conn.reconnectAndReauth
                print 'try reconnected'
            else:
                self.conn.Process(1)
            
        except KeyboardInterrupt:
            return 0

        return 1
    
    def start(self):
        self.conn.sendInitPresence(0)
        print "Bot started!"
        while self.step_on():
            pass

And bot working in duration 5 - 10 min, it receives messages, very primitive, but working.
But after 5-10 min process "python bot.py" - deep freezing, bot not respond. I am not understand where i made mistake
