Update bundled pexpect to 3.2

Closes gh-5679