Model Fit Function In Python Geeks