python rpc partially working