Flake8 compatibility of scripts