[FIX] errors got after running flake8

This PR contains some fixes to avoid errors got after running flake8. In addition the fix concerning the file travis.yml