Python Model Fit Function In Religion