def consecutive(data, stepsize=<NUM_LIT:1>):
return np.split(data, np.where(np.diff(data) != stepsize)[<NUM_LIT:0>] + <NUM_LIT:1>)<EOL>
Converts array into chunks with consecutive elements of given step size.
    http://stackoverflow.com/questions/7352684/how-to-find-the-groups-of-consecutive-elements-from-an-array-in-numpy