def chop(x, n=2):
    """Chop sequence into n approximately equal slices
    >>> chop(range(10), n=3)
    [[0, 1, 2], [3, 4, 5, 6], [7, 8, 9]]
    >>> chop(range(3), n=10)
    [[], [0], [], [], [1], [], [], [], [2], []]
    """
    x = list(x)
    if n < 2:
        return [x]
    def gen():
        m = len(x) / n
        i = 0
        for _ in range(n-1):
            yield x[round(i):round(i + m)]
            i += m
        yield x[round(i):]
    return list(gen())