import arcpy
from arcpy import env

env.workspace = "E:/data/temp/data"
field = "VALUE"
inRaster = "single_"
outPolygons = "E:/data/temp/data/shpsingle_"
num = 3
while(num <= 300):
inRaster += str(num)
inRaster += ".tif"
outPolygons += str(num)
outPolygons += ".shp"
arcpy.RasterToPolygon_conversion(inRaster, outPolygons, "NO_SIMPLIFY", field)
inRaster = "single_"
outPolygons = "E:/data/temp/data/shpsingle_"
num += 3
print "finish"