Simplify imports and remove addon preferences.
Remove commented code.
Add __pycache__ to ignore.
Remove unnecessary os imports