Fixed global enum imports for python script engine.