some flake8 cleanup and added a .gitignore for *.pyc