Fix Shortcut Editor To Run on PY2/3

Remove deprecated string import; duplicate string functionality
PY3 fix iteration