def rename_header(self, old_name, new_name):
self.hkeys[self.hkeys.index(old_name)] = new_name<EOL>self.headers[new_name] = self.headers.pop(old_name)<EOL>return self<EOL>
This will rename the header. The supplied names need to be strings.