pexpect shouldn't be imported on Windows anyway, so this change shouldn't be necessary.