dic = {'name':'Class1'}
]Class1= class...
import sys
class TestClass:
def __init__(self):
self.name = 'TestClass - 2'
def write(self):
print self.name
module = sys.modules[__name__]
class_ = getattr(module, 'TestClass')
instance = class_()
instance.write()