cElementTree extension compatibility with Python3