Simple fitter using scipy optimize minimize function