Fixed pylint errors/warnings