fix docstring, replace filename by `file-like object`