Write multiple fasta entries using scikit-bio write
<p>I am trying to read FASTA file entries using scikit-bio and then write certain entries back out to another file if it meets some requirement. The issue I am running into is that the <code>.write</code> methods seems to open and close a file so each entry overwrites the previous.</p>

<pre><code>In [39]: f = 'seqs.fna'
         seqs = skbio.io.read(f, format='fasta')
         for seq in seqs:
             if seq.metadata['id'] in ['47P50SDHBQ1PA_0', '4OZ9UI889OL5V_1', '2EC8VWHQD1LW5_2']:
                 print('True')
                 seq.write('foo.txt')

True
True
</code></pre>

<p>I would hope that in this case two entries would be written to <code>foo.txt</code> however only the last entry is present. How can I write all of the sequences meeting my criteria to file?</p>