termcolor now detects whether it is running in IDLE, as well as whether stdout is a tty.