Scipy Fit Functional With Weight