print("Found %i unique identifiers in %s" % (len(wanted), idfile)) records = (r for r in SeqIO.parse(fastafile, "fasta") if r.id in wanted) count = SeqIO.write(records, outfile, "fasta") print("Saved %i records from %s to %s" % (count, fastafile, outfile)) if count < l...