Python 2.6 ElementTree does not support much of XPath, reimplement with plain code manipulation (TUI-108)