def _chunk_write(chunk, local_file, progress):
 local_file.write(chunk)
 progress.update_with_increment_value(len(chunk))

def _chunk_write ( chunk , local_file , progress ) : local_file . write ( chunk ) progress . update_with_increment_value ( len ( chunk ) )
write a chunk to file and update the progress bar .