The batchProc.py is probably the worst code I have written in 25 years. Needs to be redone from scratch.