python code for GSOC-2013 for "GIS for SEM"