Added missing close statement for output file in pep8 task.