Call flake8 when writing to python files