One idea, and I'm not sure if it will make this more simple or not, is to just spit out a small script from this test, send it to the guest and run it.  It would avoid the aexpect bug I mentioned above also.  Just something to think about.