This project is migrating to data4 in my hg projects.
For some idea of what's going on here, see using JSON and templates to produce microformat data and #swig discussion log.
$ python icslex.py mf-hg/tests/hcard/01-tantek-basic.vcf begin VCARD {u'fn': {u'charset': u'UTF-8', 'value': u'Tantek \xc7elik'}, u'n': {u'charset': u'UTF-8', 'value': u'\xc7elik;Tantek;;;;'}, u'name': {'value': u'01-tantek-basic'}, u'org': {u'charset': u'UTF-8', 'value': u'Technorati'}, u'prodid': {'value': u'$PRODID$'}, u'source': {'value': u'$SOURCE$'}, u'url': {'value': u'http://tantek.com/'}, u'version': {'value': u'3.0'}} end VCARD