If possible, use 9.2. If using 9.1, I had to have the output of divide_sa be something other than a GRID. The script would work if divide_sa outputted to a PGDB raster, for example. You would think that putting in a gp.Delete after the intermediate output from was finsished would work, but it didnt. It generated the same error.