TileGen is a python implemented tool for visual styling of mapnik stylefiles and adding generalisation tasks to automatic tile-based mapping.