Change to pexpect.

Unit-tests passing.