possible to replace with [scipy](http://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.curve_fit.html)?