#NEWLINE# def run( self ) : #NEWLINE# #INDENT# top_10 = nlargest ( 10 , self . _input_iterator ( ) ) #NEWLINE# with self . output ( ) . open ( 'w' ) as out_file : #NEWLINE# #INDENT# for ( streams , artist ) in top_10 : #NEWLINE# #INDENT# out_line = '\t' . join ( [ str ( self . date_interval . date_a ) , str ( out_file . date_interval . date_b ) , artist , str ( streams ) ] ) #NEWLINE# out_file . write ( ( out_line + '\n' ) )