Decision Tree Python Code From Scratch