Python Subprocess Read Stdout Is Not A Tty