import xml.etree.ElementTree as ET root = ET.fromstring(country_data_as_string)
from xml.etree.ElementTree import XML, fromstring myxml = fromstring(text)