added example for Python using the RPC API