Model Decision Function Python