\begin{Verbatim}[commandchars=\\\{\}]
\PYG{k+kn}{from} \PYG{n+nn}{Bio} \PYG{k+kn}{import} \PYG{n}{SeqIO}

\PYG{n}{proteins} \PYG{o}{=} \PYG{p}{(}
    \PYG{n}{make\PYGZus{}protein\PYGZus{}record}\PYG{p}{(}\PYG{n}{nuc\PYGZus{}rec}\PYG{p}{)}
    \PYG{k}{for} \PYG{n}{nuc\PYGZus{}rec} \PYG{o+ow}{in} \PYG{n}{SeqIO}\PYG{o}{.}\PYG{n}{parse}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}coding\PYGZus{}sequences.fasta\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}fasta\PYGZdq{}}\PYG{p}{)}
\PYG{p}{)}
\PYG{n}{SeqIO}\PYG{o}{.}\PYG{n}{write}\PYG{p}{(}\PYG{n}{proteins}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}translations.fasta\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}fasta\PYGZdq{}}\PYG{p}{)}
\end{Verbatim}
