import sys import time sys.path.append("/usr/lib/python") import xsblockingchannel from xen.xend.xenstore.xstransact import xstransact while 1: xsbc = xsblockingchannel.xsblockingchannel("test") xsbc.write("hello") xsbc.waitFor("hello_done") xsbc.write("there") xsbc.waitFor("there_done")