Inkscape allows python scripts to be used as effects plugins. In a nutshell: you use the DOM to create / manipulate the structure of the SVG document and use CSS properties to style -- so there's quite some overlap with "regular" CGI & web programming.
This example (circles) is based on the example …