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

\PYG{n}{alignments} \PYG{o}{=} \PYG{n+nb}{list}\PYG{p}{(}\PYG{n}{AlignIO}\PYG{o}{.}\PYG{n}{parse}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}resampled.phy\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}phylip\PYGZdq{}}\PYG{p}{))}
\PYG{n}{last\PYGZus{}align} \PYG{o}{=} \PYG{n}{alignments}\PYG{p}{[}\PYG{o}{\PYGZhy{}}\PYG{l+m+mi}{1}\PYG{p}{]}
\PYG{n}{first\PYGZus{}align} \PYG{o}{=} \PYG{n}{alignments}\PYG{p}{[}\PYG{l+m+mi}{0}\PYG{p}{]}
\end{Verbatim}
