Update EditorEngine.py

Fixes to get v2 plugin running on windows and osx