All these `header.update()` calls are using a deprecated inteface.  Instead it should use:

```
header[keyword] = (value, comment)
```