\begin{Verbatim}[commandchars=\\\{\}]
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{vector1} \PYG{o}{=} \PYG{n}{atom1}\PYG{o}{.}\PYG{n}{get\PYGZus{}vector}\PYG{p}{()}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{vector2} \PYG{o}{=} \PYG{n}{atom2}\PYG{o}{.}\PYG{n}{get\PYGZus{}vector}\PYG{p}{()}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{vector3} \PYG{o}{=} \PYG{n}{atom3}\PYG{o}{.}\PYG{n}{get\PYGZus{}vector}\PYG{p}{()}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{vector4} \PYG{o}{=} \PYG{n}{atom4}\PYG{o}{.}\PYG{n}{get\PYGZus{}vector}\PYG{p}{()}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{angle} \PYG{o}{=} \PYG{n}{calc\PYGZus{}dihedral}\PYG{p}{(}\PYG{n}{vector1}\PYG{p}{,} \PYG{n}{vector2}\PYG{p}{,} \PYG{n}{vector3}\PYG{p}{,} \PYG{n}{vector4}\PYG{p}{)}
\end{Verbatim}
