Fix ElementTree namespaces handling for Python 2.6 compatibility