\documentclass[preview=true]{standalone}
\usepackage{minted}
\begin{document}
\begin{minted}[frame=single,linenos,mathescape,fontsize=\small]{py}

#!/bin/env python
from math import *

def feolucey2000(uvvis2, uvvis4):
 return(17.427*(-atan(((uvvis4/uvvis2)-1.19)/(uvvis2-0.08)))-7.565)

def feolawrence2002(uvvis2, uvvis4):
 return(5.7*((-0.147+0.372*(-(uvvis4/uvvis2-1.22)/(uvvis2-0.04))+\
 	(-0.036)*pow((-(uvvis4/uvvis2-1.22)/(uvvis2-0.04)),2)))+2.15)

def feowilcox2005(uvvis2, uvvis4):
  return(-137.97*((uvvis2*0.9834)+(uvvis4/uvvis2*0.1813))+57.46)

def feozhang2013(uvvis2,uvvis4):
  return(17.83*(-atan(((uvvis4/uvvis2)-1.26)/0.01)) - 6.87)

print "@Surveyor"
#M3 at Surveyor crater

uvvis2=0.05028829
uvvis4=0.0579434

print "@Bench"
#M3 at Bench (north outside)

uvvis2=0.05045871
uvvis4=0.05715561

\end{minted}
\end{document}