Make RPC tests py3 compat