pylint refactored.