there was an issue with the flattening of the lists in the main since I was able to fix some of that stuff in the run() function of the script. fixed and it runs through and outputs to a shapefile.