def input(self, _in, out, **kw):

        source_path = kw['source_path']

        # Because PyScss always puts the current working dir at first
        # place of the load path, this is what we need to use to make
        # relative references work.
        with working_directory(os.path.dirname(source_path)):

            scss_opts = {
                'debug_info': (
                    self.ctx.environment.debug if self.debug_info is None else self.debug_info),
            }
            if self.style:
                scss_opts['style'] = self.style
            else:
                scss_opts['compress'] = False

            scss = self.scss.Scss(
                scss_opts=scss_opts,
                # This is rather nice. We can pass along the filename,
                # but also give it already preprocessed content.
                scss_files={source_path: _in.read()})

            # Compile
            # Note: This will not throw an error when certain things
            # are wrong, like an include file missing. It merely outputs
            # to stdout, via logging. We might have to do something about
            # this, and evaluate such problems to an exception.
            out.write(scss.compile())
Like the original sass filter, this also needs to work as
dataset/ETHPy150Open miracle2k/webassets/src/webassets/filter/pyscss.py/PyScss.input