PyLint style fixes