converter string em nome de classe Python

# In Django, do:
from django.utils.module_loading import import_string
class_obj = import_string('account.models.Profile')  # path to class

# In Python, do:
import importlib
file_path = importlib.import_module('account.models')  # path to where the class is
class_obj = getattr(file_path, 'Profile')
codeAdept