code: def progress(byte, total, extra=""):
      
      if total == 0:
          progresstr = "Downloaded %dkB bytes" % (byte >> 10)
          progress_stream.write(progresstr + '\r')
          return
      progressbar(total, byte, extra)
docs: Print some info about how much we have downloaded