def add_external_class(klass, name=None):

    if name is None:
        name = klass.__name__

    module = sys.modules[__name__]
    setattr(module, name, klass)
Adds a class implementation to this binding's globals() dict.
dataset/ETHPy150Open CybOXProject/python-cybox/cybox/bindings/cybox_core.py/add_external_class