python: Fix reference counting of ContentStat in XmlFile.