fixing flake8 and adding travis