pep8 in test_script replaced with flake8