code: def progress(count, total, suffix=''):
      '''
      Display progress bar
      sources: https://gist.github.com/vladignatyev/06860ec2040cb497f0f3
      '''
      bar_len = 60
      filled_len = int(round(bar_len * count / float(total)))
      percents = round(100.0 * count / float(total), 1)
      bar = '=' * filled_len + '-' * (bar_len - filled_len)
      sys.stdout.write('[%s] %s%s %s\r' % (bar, percents, '%', suffix))
      sys.stdout.flush(f progress(count, total, suffix=''):
      '''
      Display progress bar
      sources: https://gist.github.com/vladignatyev/06860ec2040cb497f0f3
      '''
      bar_len = 60
      filled_len = int(round(bar_len * count / float(total)))
      percents = round(100.0 * count / float(total), 1)
      bar = '=' * filled_len + '-' * (bar_len - filled_len)
      sys.stdout.write('[%s] %s%s %s\r' % (bar, percents, '%', suffix))
      sys.stdout.flush()
docs: Display progress bar
      sources: https://gist.github.com/vladignatyev/06860ec2040cb497f0f3