Fixing pylint errors.

Lots of little errors.