fix print statements in progressbar

91ae6cb1394e42871fd47c261b4ed15f93679bcd added Python 3 fixes, but made
incorrect changes to the print statements in the progress bar.