fix for xml parsing for python 2.6