from xmlrpclib import ServerProxy server = ServerProxy("http://localhost:8000") while True: msg = raw_input() server.msg(msg)