end to end predictive model using python