instead of "while x < names.length:" you can use "for name in names:"... one those python niceisms.
x = 0for name in names: print name.childNodes[0].nodeValue, ":", text[x].childNodes[0].nodeValue x+=1
Also from looking at some code examples it appears as though a blank line ends a function. This isn't cool as I tend to put blank lines in my functions to help logically group statements.
def foo() statement 1 statement 2 statement 3 statement 4 statement 5 statement 6 statement 7 statement 8 statement 9