finalized up to the writing of the output shapefiles.
added multiprocessing in a couple of other steps to speed things up.  wrote in shapefile outputting.
cleaning up a bit more...
still trying to overcome that bottleneck at the end... working, but not very fast.
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.
removed the redundancy issue and the script is working fast and is much cleaner and less code. Next step is to run it on the full data set.
cleaning up