Update bundled pexpect to 3.2

Closes gh-5679
Merge pull request #5687 from takluyver/pexpect-3.2

Update bundled pexpect to 3.2