Converted another inline 'expect' call to use the pexpect library.