fixed docstring with file object, see #167