\begin{Verbatim}[commandchars=\\\{\}]
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{k+kn}{from} \PYG{n+nn}{Bio} \PYG{k+kn}{import} \PYG{n}{SeqIO}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{uniprot} \PYG{o}{=} \PYG{n}{SeqIO}\PYG{o}{.}\PYG{n}{index}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}uniprot\PYGZus{}sprot.dat\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}swiss\PYGZdq{}}\PYG{p}{)}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{k}{with} \PYG{n+nb}{open}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}selected.dat\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}wb\PYGZdq{}}\PYG{p}{)} \PYG{k}{as} \PYG{n}{out\PYGZus{}handle}\PYG{p}{:}
\PYG{g+gp}{... }    \PYG{k}{for} \PYG{n}{acc} \PYG{o+ow}{in} \PYG{p}{[}\PYG{l+s+s2}{\PYGZdq{}P33487\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}P19801\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}P13689\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}Q8JZQ5\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}Q9TRC7\PYGZdq{}}\PYG{p}{]:}
\PYG{g+gp}{... }        \PYG{n}{out\PYGZus{}handle}\PYG{o}{.}\PYG{n}{write}\PYG{p}{(}\PYG{n}{uniprot}\PYG{o}{.}\PYG{n}{get\PYGZus{}raw}\PYG{p}{(}\PYG{n}{acc}\PYG{p}{))}
\PYG{g+gp}{...}
\end{Verbatim}
