Refactoring pylints.