Handle broken and terrible ElementTree on Python 2.6.