@staticmethod
def _split_not_in_par(string, sep):
    """
        Split string at all occurences of sep but not inside of a parenthesis
        """
    result = []
    count = 0
    split = []
    for char in string:
        if char == '(':
            count += 1
        elif char == ')':
            count -= 1
        if char == sep and count == 0:
            result.append(''.join(split))
            split = []
        else:
            split.append(char)
    if split:
        result.append(''.join(split))
    return result
