progressiterator.py: improved updating of the percentage