Successful (highly naive) python XML parser