Detect tty and adapt output
Recently, we added progress bars for certain kinds of calculations. This works well for ttys, ie interactive terminals, but is rather distracting in log files created by batch runs or shell redirection. Hence, it would be nice to use sys.stdout.isatty()
to detect the way climix is being run and to produce appropriate output for the circumstances.