Add flake8 to Travis tests. Fix #180.