Add `runtests.py` script.

Add runtests.py script and introduce flake8 linting.