def new_class(name, bases=(), kwds=None, exec_body=None):
 (meta, ns, kwds) = prepare_class(name, bases, kwds)
 if (exec_body is not None):
  exec_body(ns)
 return meta(name, bases, ns, **kwds)

def new_class ( name , bases = ( ) , kwds = None , exec_body = None ) : ( meta , ns , kwds ) = prepare_class ( name , bases , kwds ) if ( exec_body is not None ) : exec_body ( ns ) return meta ( name , bases , ns , ** kwds )
create a class object dynamically using the appropriate metaclass .