Don't leave None palette classes in palette_layout
Merge branch 'optional-shell' into 'master'
Fixes bad indentation
Removes unused imports from interpreter.noncached
Removes useless 'global' statements
Fixes unassigned expressions