def compile(self): """Run the compiler and return the stdout""" flags = [self.compiler] + self.flags + [self.main_file] process = Process(flags) stdout = process.read_stdout() return stdout