Fix pylint warnings.
Add PEP8 configuration.
PEP8 formatting fixes.