Fixed bug in bigbatch.py that was preventing all codes from executing