def _chunks(l, n):
 for i in range(0, len(l), n):
  (yield l[i:(i + n)])

def _chunks ( l , n ) : for i in range ( 0 , len ( l ) , n ) : ( yield l [ i : ( i + n ) ] )
yield successive chunks from list  l with a minimum size  n .