Cleanup pages for pages that use 'term' without a language
Fragment of a discussion from User talk:Bequw
mw:Manual:Pywikipediabot has a module xmlreader that you can use to parse the xml dump into pages. Other tools are mentioned at m:Data dumps.