PyLint optimization.