Taking into account that I am very new to Python and so must be missing something important.... dumping xml.dom and going to lxml made a WORLD of difference to the performance of the application.