def ensure_value(self, key, value):
    if (getattr(self, key, None) == None):
        self.__dict__[key] = value
    return self.__dict__[key]
def ensure_value(self, key, value):
    if (getattr(self, key, None) == None):
        self.__dict__[key] = value
    return self.__dict__[key]