vars_to_pass = nub([v for v in self.PASS_VARIABLES_BASE if v in os.environ])

where nub is imported from VSC tools' missing:

from vsc.utils.missing import nub