Use the faster cElementTree module for Python