def update_headers(self, dictionary, keys=None):
if keys is None: keys = list(dictionary.keys())<EOL>for k in keys: self.insert_header(k, dictionary[k])<EOL>return self<EOL>
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.