resolve progressbar python2/3 integer step ambiguity