code: def chunks(data, size):
      
      it = iter(data)
      for i in range(0, len(data), size):
          yield {k: data[k] for k in islice(it, size)}
docs: Get chink for dict, copy as-is from https://stackoverflow.com/a/8290508/6753144