code: def update_headers(self, dictionary, keys=None):
          
          if keys is None: keys = list(dictionary.keys())
          for k in keys: self.insert_header(k, dictionary[k])
          return self
docs: Updates the header with the supplied dictionary. If keys=None, it
          will be unsorted. Otherwise it will loop over the supplied keys
          (a list) in order.