Create 2D graphics on the Mac with Python code