Model Fit Function Python Example Testamentary