have python script loop through xml file