fixed python xml error