#NEWLINE# def filter_hoppable( source ) : #NEWLINE# #INDENT# '\n    returns an iterator of hoppable pools\n    ' #NEWLINE# for pool in source : #NEWLINE# #INDENT# if ( not pool . payout_scheme ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( pool . payout_scheme . lower ( ) in [ 'prop' , 'score' ] ) : #NEWLINE# #INDENT# ( yield pool )