Add flake8 and fix errors.

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
Run flake8 in travis build

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
Merge pull request #353 from dnephin/add_flake8

Add flake8