Fix various pylint warnings.