in reply to Scripting Inkscape
See https://github.com/fdesar/Origami-Ext, via Writing a Perl extension framework for Inkscape. Super Search will probably find more.