'Returns a string representation of this script.'

def __str__(self):

    if self.imports:
        self.stderr.write(repr(self.import_lines))
        return flatten_blocks(((([''] + self.import_lines) + ['']) + self.lines), num_indents=self.indent)
    else:
        return flatten_blocks(self.lines, num_indents=self.indent)
