WebSocket implementation in Python 3