\begin{Verbatim}[commandchars=\\\{\}]
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{k+kn}{from} \PYG{n+nn}{Bio.Align} \PYG{k+kn}{import} \PYG{n}{substitution\PYGZus{}matrices}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{k}{with} \PYG{n+nb}{open}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}BLOSUM62\PYGZdq{}}\PYG{p}{)} \PYG{k}{as} \PYG{n}{handle}\PYG{p}{:}
\PYG{g+gp}{... }   \PYG{n}{matrix} \PYG{o}{=} \PYG{n}{substitution\PYGZus{}matrices}\PYG{o}{.}\PYG{n}{read}\PYG{p}{(}\PYG{n}{handle}\PYG{p}{)}
\PYG{g+gp}{...}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{k}{print}\PYG{p}{(}\PYG{n}{matrix}\PYG{o}{.}\PYG{n}{alphabet}\PYG{p}{)}
\PYG{g+go}{ARNDCQEGHILKMFPSTWYVBZX*}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{k}{print}\PYG{p}{(}\PYG{n}{matrix}\PYG{p}{[}\PYG{l+s+s1}{\PYGZsq{}A\PYGZsq{}}\PYG{p}{,}\PYG{l+s+s1}{\PYGZsq{}D\PYGZsq{}}\PYG{p}{])}
\PYG{g+go}{\PYGZhy{}2.0}
\end{Verbatim}
