ciElementTree extension compatibility with Python3