old_contents: def reverse_insort(seq, val):
      lo = 0
      hi = len(seq)
      while lo < hi:
          mid = (lo + hi) // 2
          if val > seq[mid]:
              hi = mid
          else:
              lo = mid + 1
      seq.insert(lo, val)
  
new_contents: def reverse_insort(seq, val, lo=0, hi=None):
      if hi is None:
          hi = len(seq)
      while lo < hi:
          mid = (lo + hi) // 2
          if val > seq[mid]:
              hi = mid
          else:
              lo = mid + 1
      seq.insert(lo, val)
  
subject: Add optional hi and lo params to reverse_insort