def write_line ( self , line , count = 1 ) : self . write ( line ) self . write_newlines ( count )
python write one line last line
writes the line and count newlines after the line
def write_line(self, line, count=1):
        """writes the line and count newlines after the line"""
        self.write(line)
        self.write_newlines(count)