Model Fit Function In Python Practice