DrawBot
Free application for macOS that invites you to write Python scripts
...The application exports graphics in formats including PDF, SVG, PNG, JPEG, and TIFF. Animated output can be saved as GIF or MP4 files. DrawBot can also be installed as a Python module, allowing its drawing functions to be integrated into automated design workflows.