SyntaxFix
Write A Post
Hire A Developer
Questions
I think you can use eval. Something like this
eval
def toclass(strcls): return eval(strcls)()