Given that you have pywin32 installed you can try this hack:
try:
import arcgisscripting
except ImportError:
import win32com.client
class arcgisscripting(object):
@staticmethod
def create():
return win32com.client.Dispatch('esriGeoprocessing.GpDispatch.1')
This will make decouple the python version from the ArcGIS version. The drawback is that you won't be able to use arcpy or the create(9.3) variations.To iterate a list you do this:
feature_classes = gp.ListFeatureClasses()
for fc in iter(feature_classes.Next, None):
print fc