code: def iterprogress( sized_iterable ):
      
      pb = ProgressBar( 0, len( sized_iterable ) )
      for i, value in enumerate( sized_iterable ):
          yield value
          pb.update_and_print( i, sys.stderr )
docs: Iterate something printing progress bar to stdout