import io, collections, re import xml.etree.ElementTree as ET t = io.open('assets/readme/architecture.svg', encoding='utf-8').read() ET.fromstring(t) for bad in ('