low level websocket server in python