#NEWLINE# def _select( item ) : #NEWLINE# #INDENT# '\n    Selection utility function\n    ' #NEWLINE# global i #NEWLINE# i = ( ( i + 1 ) if ( i < ( 10 ** 10 ) ) else 0 ) #NEWLINE# if ( len ( item ) == 0 ) : #NEWLINE# #INDENT# raise ValueError ( 'No valid pools' ) #NEWLINE# #UNINDENT# return item [ ( item % len ( item ) ) ]