Made small changes to ensure that GAE can handle local batch processing