1) OK, I'll look again, though I'm not aware of any other options. But I've only been using Python 3 for a short time. Which docs should one look at?
2) (Frame challenge?) Yes, I looked at it. And it works. Thank you, @JeffSchaller for the useful suggestion. But I still would like to know what is going on with pexpect. I don't see any option on the POP library for manually taking control of the session, so cannot compare that part directly.