[#80] Support for Python 2.6 when handling xml exceptions