With 3.6 this used some other API which already used is_cygpty() but now uses isatty() directly. This fixes the interactive prompt under mintty.
The official CPython doesn't either on Windows. One less thing to care about.