Cleanup of generation script, based on the review from Campbell Barton
Cleanup of generation script, based on the review from Campbell Barton

hksonngan/cuew,CudaWrangler/cuew,hksonngan/cuew,CudaWrangler/cuew,hksonngan/cuew,CudaWrangler/cuew,CudaWrangler/cuew