Pylama: new checker for Python 2.

Minor refactoring.