def output(self): from Parser import parseBoolean for o in parseBoolean(open(self.outputPath)): yield o[0]