contrib/pep8analysis: move file output to main module