I think using `with` would make this look nicer.

```python
with open(blah, 'w') as fd:
    fd.write('')
```