fix python register_rpc_service()