Edit to websocket.py, cleanup code etc
Merge https://github.com/jonghough/SimpleWebsocket