Cleaned up most pylint warnings.

There's still one unresolved pylint error.
3 files changed