If you use a new style class it, this will work:
class ClassA(object):
pass
o = ClassA()
mytype = type(o)
new_object = mytype()
If you use a new style class it, this will work:
class ClassA(object):
pass
o = ClassA()
mytype = type(o)
new_object = mytype()