def split(list_to_split, amount_of_parts):
    """Split a list into equal parts

    Args:
        list_to_split: Any list
        amount_of_parts: Number of equally sized parts

    Returns:
        splitted list as list of lists

    """
    k, m = divmod(len(list_to_split), amount_of_parts)
    return (list_to_split[i * k + min(i, m):(i + 1) * k + min(i + 1, m)] for i in range(amount_of_parts))