I use mapnik with postgis, I tried to modify the python script that exists in the OSM svn repository to do meta tiles, os far without success. Generating single tiles works but takes too long.