Makes filtered websocket python 3.4 compatible.