Fixed pylint warnings and updated .gitignore