Use pexpect in Python2 test only