helper for downloading the file

def _report(self, blocknr, blocksize, size):
        ''' helper for downloading the file '''

        current = blocknr * blocksize
        sys.stdout.write("\r{0:.2f}%".format(100.0 * current / size))