fix pep8 and pyflakes violations and enforce with travis
Merge pull request #55 from jsatt/pep8

fix pep8 and pyflakes violations and enforce with travis