fixed progress counter + pep8 & pylint fixes