'Import the module on demand and set the attribute.'

def __setattr__(self, name, value):

    if (not self.__lazymodule_init):
        self.__dict__[name] = value
        return
    if self.__lazymodule_loaded:
        self.__lazymodule_locals[self.__lazymodule_name] = value
        self.__dict__[name] = value
        return
    if _debug:
        print(('LazyModule:    Module    load    triggered    by    attribute    %r    write    access' % name))
    module = self.__lazymodule_import()
    setattr(module, name, value)
