Fix some pylint warnings

(not finished yet)