def splitList(listToSplit, num_sublists=1):
    """
    Function that splits a list into a given number of sublists
    Reference: https://stackoverflow.com/questions/752308/split-list-into-smaller-lists-split-in-half
    """
    length = len(listToSplit)
    return [
        listToSplit[i * length // num_sublists : (i + 1) * length // num_sublists]
        for i in range(num_sublists)
    ]