flake8 and fix path in __main__