Fix errors detected by PyLint.