This is not really an issue report but rather more of a comment, feel free to close it right away :) In case someone needed to create Inkscape layers with svgwrite here is an InkscapeDrawing class ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results