Can\'t seem to find a clue to this online and can\'t figure it out myself so:
How would I go about slicing a list so that I return a list of slices of contiguous non
import itertools [ list(x[1]) for x in itertools.groupby(data, lambda x: x == 0) if not x[0] ]