Fix core gitignore patterns for file matching
Add Python compiled files to core gitignore