When using the zhone 10B configuration script Matt created, we ran into the problem that we did not have a machine SLOW enough not to over run the output of the zhone. Our machine would break out of the waitfor() and goto the print() the command before the zhone was ready to receive the input. To fix this we put a single second sleep before EVERY print statement. This might be a bit too long as the script took 7.366666666666 minutes to run, but I did not have time as of yet to fix this.
It might be a good idea to run a few test to determine a good wait time and use that.
Mike