I think this would be better if it saved to SVG by default or had the option to do so. I looked through the docs very briefly and didn’t see any mention of image format, but maybe it’s there somewhere. PNG is ok, but in the world of handheld through giant devices, SVG is better.
The filename extension defines the output format. I changed the following and got an SVG instead. Still looks incredible as well.
filename = str(uuid.uuid4()).split('-') + '.svg'