adding a modified pexpect version