removed use of math.erf, which is not available in py2.6
(#248)