Model Fit Function Python Questions