Removed debug logging.
Fixed some pylint errors after running prospector.