Fix batch runner.
Some pep8 and pylint.