def indiceStringToList(string):
    """
    for example:
    turns 1,2,63,7;5,2,986;305,3;
    into [[1,2,63,7], [5,2,986], [305,3], []]
    """
    output = [[int(char) for char in row.split(',') if char != ''] for row in string.split(';')]
    return output