Allow linting our code using pants.

- fix for using pylint.
- added pyflakes.
We should NOT be using pylint anyways (it is super-noisy).

Change-Id: Id04891580981917d34c4a7c127663464de60a3b2