def _get_value_for_type(type_value, value):
    """ Return the Value depending on the Type """
    if type_value == bool:
        if value.lower() in ['true', '1']:
            return True
        if value.lower() in ['false', '0']:
            return False
        mess = "Waiting for a boolean but value is '%s'." % value
        raise Exception(mess)
    if type_value == list:
        return value.split(' ')
    return value
