Support to Python 3: should use websocket-client-py3
Thread module is obsolete in Python 3, should use _thread
Added a dot before module import to fix ImportError
Send a ping after the connection is open, not wait the interval