WebSocket emulation - Python server