Yikes :) You could use fontforge python module or fontTools (all
native Python that way, runs on pypy if you use Behdad's version
(
github.com/behdad/fonttools))
http://code.google.com/p/googlefontdirectory/source/browse/tools/chars/sh...
is a simple fontforge python script
http://fontforge.org/python.html is the official python API, a nicer
version is at
http://dmtr.org/ff.php is a nicer
A fontTools example is here;
https://github.com/xen/fontbakery/blob/master/scripts/genmetadata.py