Model Fit Function In Python With Parameters