code: def reduce_list_size(li):
      
      # sys.getsizeof is nearly useless. All our data is stringable so rather
      # use that as a measure of size.
      size = len(repr(li))
      keep = li
      toss = []
      n = len(li)
      decrement_by = max(n / 10, 10)
      while (size >= MAX_SIZE) and (n > 0):
          n -= decrement_by
          toss = li[:-n]
          keep = li[-n:]
          size = len(repr(keep))
      return keep, toss
docs: Return two lists
          - the last N items of li whose total size is less than MAX_SIZE
          - the rest of the original list li