I've been working on something similar.
https://github.com/fogleman/pg
Here are a couple of things I've created using it so far, beyond what's in the pg examples folder:
https://github.com/fogleman/pg
Here are a couple of things I've created using it so far, beyond what's in the pg examples folder: