There's a few libraries for making SVG files in PHP, so there may be Python versions too, but if you want ActionScript then I guess you're determined to go with Flash instead.....