What's the purpose of the `not options.progress_mode` check here? Even if it's off, there won't be any useful result if the second condition is false, will there?

And BTW, Python has an `is not` operator.