DefconfigManager is too to generate consistent Linux Kernel defconfig for different architectures and machines. It is based Kconfiglib, Python library to parse Kconfig's and defconfigs.
XMLObject gives you an easy way to parse XML into Python objects. The objects created by XMLObject are far easier to manipulate than those made by xml.dom. This project also includes a GUI application, XMLObjApp, to generate XML parsers for you.