#NEWLINE# def chunks( object_list , chunk_size = 100 ) : #NEWLINE# #INDENT# for i in xrange ( 0 , len ( object_list ) , chunk_size ) : #NEWLINE# #INDENT# ( yield object_list [ i : ( i + chunk_size ) ] )