code: def chunks(l,n):
      '''chunk l in n sized bits'''
      #http://stackoverflow.com/a/3226719
      #...not that this is hard to understand.
      return [l[x:x+n] for x in range(0, len(l), n)]f chunks(l,n):
      '''chunk l in n sized bits'''
      #http://stackoverflow.com/a/3226719
      #...not that this is hard to understand.
      return [l[x:x+n] for x in range(0, len(l), n)];
docs: chunk l in n sized bits