Just a suggestion: couldn't you could simplify this by doing something like:

```
headers = { "Node", "Node id", "Operating system" , "Machine type" }
for index, header in enumerate(headers):
    sheet.write(0, index, header, style)
```

?