WebSocket protocol is pretty easily implemented in pure Python; my co-founder and I did this just recently to support some of our game client functionality.
Even when they don't, it's easy to find. There are both websocket and socket.io implementations available for gevent for instance.