Made the XML config reading part compatible with Python 2.6