Wikipedia
DrawBot
DrawBot is an open source application for Mac OS X that allows users to write simple Python scripts to generate two-dimensional graphics. The builtin graphics primitives support rectangles, ovals, (bezier) paths, polygons, text objects and transparency.
DrawBot primarily serves an educational purpose, used as a tool to teach the basics of programming. Students get graphical feedback for positive reinforcement via. coding. They learn programming structures such as variables, conditional statements, functions. DrawBot is used by the Royal Academy.
DrawBot is written in Python, with a fully self-sufficient binary.