Model Fit Function Python Practice