Add original python code for looping global shapefile