Checking this locally in Git Bash gives the same result:
MINGW64 ~
$ python -c 'import sys,os; print os.isatty(sys.stdout.fileno())'
False
So this is Git Bash’s (or rather, the underlying MinGW64’s) problem.
https://stackoverflow.com/questions/40912072/git-for-windows-mintty-sys-stdout-isatty-returns-false suggests that this can be worked around by running the command via winpty
:
MINGW64 ~
$ winpty python -c 'import sys,os; print os.isatty(sys.stdout.fileno())'
True