#NEWLINE# def query_for_range( client , query , range_start , range_end ) : #NEWLINE# #INDENT# frequency = query . get ( 'frequency' , 'weekly' ) #NEWLINE# for ( start , end ) in period_range ( range_start , range_end , frequency ) : #NEWLINE# #INDENT# for record in query_ga ( client , query , start , end ) : #NEWLINE# #INDENT# ( yield record )