def writebyproteinrec(outprotrec, handle, fields=GAF20FIELDS):
 for outrec in outprotrec:
  writerec(outrec, handle, fields=fields)

def writebyproteinrec ( outprotrec , handle , fields = GAF20FIELDS ) : for outrec in outprotrec : writerec ( outrec , handle , fields = fields )
write a list of gaf records to an output stream .