Fix progress bars in all scripts

Need to flush stdout after a print