Python Model Fit Function And Form