csterling 0 Newbie Poster

I am trying to create a buffer on a shapefile using python's GDAL/OGR module. I'm not sure where to take the code from here...ideally I would like the buffered file to be a new file. All the documentation I found confused me and I thought maybe someone here could help! If I haven't been clear please say so so I can clarify. Thanks!

from osgeo import ogr
import sys, os

driver = ogr.GetDriverByName("ESRI Shapefile")

dataSource = driver.Open('important_bird_areas_points.shp', 1)

layer = dataSource.GetLayer()

feature = layer.GetNextFeature()

while feature:
	feature.Buffer(100)
	feature = layer.GetNextFeature()