This question is similar to Slicing a list into a list of sub-lists, but in my case I want to include the last element of the each previous sub-list, as the first e
[list_[i:i+n] for i in xrange(0,len(list_), n-m)]