import new
MyClass = new.classobj('MyClass', (object,), {})