What a great idea. You need sort of an 'anti-swig' tool to autmoate things. That doesn't yet exist, but Pyrex might be a manual solution: http://216.239.39.104/search?q=cache:XiaAAKN0szgJ:www.freenet.org.nz/python/embeddingpyrex/+pyrex+python&hl=en Please keep us abreast of what you find.