You must seek for python and Open Source GIS or mapserver and you find: http://mapserver.gis.umn.edu/community/conferences/MUM3/workshop/python http://www.archaeoworld.com/classes/osgit/lectures/ with http://www.archaeoworld.com/classes/osgit/lectures/osgit_02_libraries.pdf
and you have some examples in http://www.koders.com/python/fid907532DAD536B552A4E6F7328EB863EFB9528C8A.aspx I use the ogr module without problem -- http://mail.python.org/mailman/listinfo/python-list