Various PyLint fixes