append mode should be specified at initialization time

It doesn't work to have append mode as an argument to write. This is now deprecated.