Python implementation of the ID3 Algorithm