Fixes some pylint warnings.