python websocket server inspired by ZeroMQ structure