Python Code For Id3 Decision