Prefer the notation with:

```
with open(u'fbfeed.txt', 'w') as f:
    f.write(result)
```

(why str(result) by the way?)