fix XmlItemExporter in Python 2.7.4 and 2.7.5