Flake8 components/validator

This PR fixes all files under `components/validator` to let `flake8` pass and adds the `flake8` operation to the Travis build.