Python Model Evaluate Function In R