def init_module():
    import sys
    from mongoengine import fields
    current_module = sys.modules[__name__]
    current_module.__all__ = fields.__all__

    for name in fields.__all__:
        fieldcls = getattr(fields, name)
        mixin = getattr(djangoflavor, name, djangoflavor.DjangoField)
        setattr(
            current_module, name,
            type(name, (mixin, fieldcls), {})
        )
Create classes with Django-flavor mixins,
dataset/ETHPy150Open MongoEngine/django-mongoengine/django_mongoengine/fields/__init__.py/init_module