Fix some pylint errors