import bpyimport bgedef getObject(object): return bge.logic.getCurrentScene().objects[object]obj = getObject('name')