svglue is a small library that takes a template in form of a specially prepared SVG document and fills in text and images to create an output SVG file.
The pip version did not work of the box and I ran into the same issue as pointed out here.
Link to working tutorial