This seems to be an issue with lxml. I couldn't report issue on their repo. The same file could be parsed by python's inbuilt xml.etree.ElementTree.parse(fpath) without any issue. May be svg_file = etree.parse(fid, parser=etree.XMLParser()) in line 354 of transform.py could be modified to resolve this.