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


### Additional customizations for Django ###
Create a base class with a metaclass.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/utils/six.py/with_metaclass