Do we actually need to omit  the leading underscores in the keys of HEADER_DICT ?  It looks here as if it might just be simpler not to.