Mark, I find GDAL/OGR quite useful for manipulating geometries. OGR in particular allows you to manipulate vector data, and perform simple operations such as adding/subtracting. It's also easy to plug in matplotlib. http://www.gdal.org/ogr/