"python - how do i convert ""an os-level handle to an open file"" to a file object?",f.write('foo')