def write_chunks(out, chunks):
 out.write(_signature)
 for chunk in chunks:
  write_chunk(out, *chunk)

def write_chunks ( out , chunks ) : out . write ( _signature ) for chunk in chunks : write_chunk ( out , * chunk )
create a png file by writing out the chunks .