Simply see [XML-RPC]. Use the [http://www.freenet.org.nz/dojo/pyjson/ SimpleJSONRPCServer] instead of SimpleXMLRPCServer and you are done! You'll also want [http://developer.spikesource.com/wiki/index.php/Article:Accessing_JSON-RPC_with_Python JSON RPC Client] too. {{{ $ cat testjsonrpc.py import sys import jsonrpclib rpc_srv = jsonrpclib.ServerProxy("http://localhost:8000/json_rpc_srv/") result = rpc_srv.multiply( int(sys.argv[1]), int(sys.argv[2])) print "%d * %d = %d" % (int(sys.argv[1]), int(sys.argv[2]), result['result']) }}} There you go! Another power of python here!