XML Parser application in Python