fix another python3 compatility in websocket