def chunks(iterable: list, amount: int):
    """
    Split a list into x chunks
    :param iterable: List of stuff to chunk
    :param amount: How many chunks?
    :return: List of lists
    """
    avg = len(iterable) / float(amount)
    out = []
    last = 0.0

    while last < len(iterable):
        out.append(iterable[int(last):int(last + avg)])
        last += avg

    return out