NodeBox is a Mac OS X application that lets you create 2D visuals (static, animated or interactive) using Python programming code and export them as a PDF or a QuickTime movie. NodeBox is free and well-documented
NodeBox is based on DrawBot 0.9a (DrawBot is a project initiated by Just Van Rossum from LettError, a simple MacOSX application that allows you to write Python scripts that generate two-dimensional graphics).