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

\PYG{n}{handle} \PYG{o}{=} \PYG{n}{gzip}\PYG{o}{.}\PYG{n}{open}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}m\PYGZus{}cold.fasta.gz\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}rt\PYGZdq{}}\PYG{p}{)}
\PYG{k}{for} \PYG{n}{record} \PYG{o+ow}{in} \PYG{n}{SeqIO}\PYG{o}{.}\PYG{n}{parse}\PYG{p}{(}\PYG{n}{handle}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}fasta\PYGZdq{}}\PYG{p}{):}
    \PYG{n+nb}{print}\PYG{p}{(}\PYG{n}{record}\PYG{o}{.}\PYG{n}{id}\PYG{p}{,} \PYG{n+nb}{len}\PYG{p}{(}\PYG{n}{record}\PYG{p}{))}
\PYG{n}{handle}\PYG{o}{.}\PYG{n}{close}\PYG{p}{()}
\end{Verbatim}
