import xml.etree.cElementTree as ET
import re
with open('index.xml') as f:
    xml = f.read()
tree = ET.fromstring(re.sub('(<\\?xml[^>]+\\?>)', '\\1<root>', xml) + '</root>'
    )
Python XML: ParseError: мусор после элемента документа