[python] TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader