def writebytes(filename, bytesource):
 outfile = open(filename, 'wb')
 for bt in bytesource:
  outfile.write(bt)

def writebytes ( filename , bytesource ) : outfile = open ( filename , 'wb' ) for bt in bytesource : outfile . write ( bt )
convenience for emitting the bytes we generate to a file .