Fix some PyLint warnings