New PTY-based approach in Python 3.