text: # Optional, download progress bar
  class MyProgressBar():
      def __init__(self):
          self.pbar = None
          self.bar.star()
  
      def __call__(self, block_num, block_size, total_size):
          if not self.pbar:
              self.pbar=progressbar.ProgressBar(maxval=total_size)
              self.pbar.start()
  
          downloaded = block_num * block_size
          if downloaded < total_size:
              self.pbar.update(downloaded)
          else:
              self.pbar.finish()