I posted a Python wrapper called vmpy that can be used to control a virtual machine directly from Python. The wrapper can be found here.