adding batching.py - had forgotten to add it when moved it to noccn