In v9.3:
gp.extent = "0 0 1000 5000"
#or gp.extent = r"C:\temp\test.shp"
#optional gp.mask = r"C:\temp\test.shp"
gp.cellsize = "100"
# optional gp.snapraster = someOtherGrid
somaExp = "1"
outputGrd= r"C:\temp\test"
gp.SingleOutputMapAlgebra_sa (somaExp, outputGrd, "")