Update TravisCI tests

Update to latest version of .travis.yml.
Fixes undetected flake8 errors found in #37.