A Python implementation of decision tree learning in AI