RPC example implemented by python