Fix AttributeError with cElementTree and Python 2.6