No, I think you're right, we'll have it open mode 'a' for existing files in normal circumstances.

Why is the `f.get_filesize()` clause necessary?  I would think that `len(f.listNodes('/'))` (to use the 2.x API) would be sufficient.