changed to python for parsing xml