Display elapsed time when the progress bar is complete

I would like the progress bar to display the total elapsed time when it completes. I think this is a non-negative improvement, as the progress bar would previously display 00:00:00, which is useless.

I also did a number of PEP8 formatting fixes. Apologies for not splitting out into separate commits.