No idea if it's of any use, but I came upon this at random, and it looked
closely related.
Perhaps there's something on the site, in the source code, or the documentation
that would be of use to you in your project.
http://www.skirt.ugent.be/website/index.html