Very minor fix to ProgressReporter.finish()
ProgressReporter.finish():
Only write the terminating newline if stdout is a tty. If stdout is
not a tty, then the _progess() method has already been using
newlines, so there's no need to write an extra one when finishing.