[DAT] revise batch.py, ready for running experiments