Fixed pylint errors.