Fix Flake8 errors and make Travis CI run nose2