fixes errors in python decision tree script