Make irunner compatible with upcoming pexpect 3.0 interface
Merge pull request #4345 from takluyver/pexpect3-interface

Make irunner compatible with upcoming pexpect 3.0 interface