'Used to put global values in the sub Class like
hosts or services'

def load_global_conf(cls, conf):

    for (prop, entry) in conf.properties.items():
        if hasattr(conf, prop):
            for (cls_dest, change_name) in entry.class_inherit:
                if (cls_dest == cls):
                    value = getattr(conf, prop)
                    if (change_name is None):
                        setattr(cls, prop, value)
                    else:
                        setattr(cls, change_name, value)
