make flake8 check reusable
refactor: move all routines related to testing from util.base to new util.testing
update make_pep8.py in docs (fixes #666 \m/)