from xmlrpclib import ServerProxy # Connect to the python server. python_server = ServerProxy('http://localhost:8001')