Remove pyc files, add relevant patterns to .gitignore