Add Travis CI configuration and fix flake8 warnings.
Merge pull request #13 from alexpearce/travis-ci

Add Travis CI configuration and fix flake8 warnings.