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>