use _tty_out=False instead of setting specific flags
Merge pull request #3138 from dimagi/no-tty

use _tty_out=False instead of setting specific flags