code: def update_many(path,points):
    
    if not points: return
    points = [ (int(t),float(v)) for (t,v) in points]
    points.sort(key=lambda p: p[0],reverse=True) #order points by timestamp, newest first
    fh = None
    try:
      fh = open(path,'r+b')
      return file_update_many(fh, points)
    finally:
      if fh:
        fh.close()
docs: update_many(path,points)
  
  path is a string
  points is a list of (timestamp,value) points