def with_metaclass(meta, base=object):
 return meta('NewBase', (base,), {})

def with_metaclass ( meta , base = object ) : return meta ( 'NewBase' , ( base , ) , { } )
class decorator to set metaclass .