import re


def splitForValues(forValues):
    """
    Splits a string of 1+ "for" values into an array of individual value.
    Respects function args, etc.
    Currently, for values are separated by commas.
    """
    if forValues is None:
        return None
    forValues = re.sub(r"\s+", " ", forValues)
    return [
        value.strip()
        for value in re.split(r",(?![^()]*\))", forValues)
        if value.strip()
    ]