to fixup the bug of send and receive message in PyQQ.py
to make the logging out ,and make sure that the keep alive is ok