refactor ID3 python_modular example