def unique_value(val):
    """Get last element of a value if it is a list else returns the value

    Used in parsing, if we set several time a parameter we only take the last one

    :param val: val to edit
    :type val:
    :return: single value
    :rtype: str
    """
    return val if not isinstance(val, list) else val[-1]
