this is confusing. Mode must be 1 character or what? I can send mode='rw' here and expect to have read and write access, but in reality will be getting read-only file object.