An n-dimensional curve fitter written in C Python