Moved self.outputFolder up, so it can be used without errors.