Version 2 of the drawsvg module is available in Basthon's Python kernel, next to the old drawSvg version. Shapes, texts, gradients, animations… drawings are shown directly and downloaded as SVG with d.download().
drawSvg
d.download()
Play with it!