def build_output ( self , fout ) : fout . write ( '\n' . join ( [ s for s in self . out ] ) )
how to make outputs next to each other in python
Squash self . out into string .
def build_output(self, fout):
        """Squash self.out into string.

        Join every line in self.out with a new line and write the
        result to the output file.
        """
        fout.write('\n'.join([s for s in self.out]))