Fix python 2.6 incompatibility in test_write
Fix doc ref mistake and provide additional refs for read/write params