def group(seq, size):
 if (not hasattr(seq, 'next')):
  seq = iter(seq)
 while True:
  (yield [seq.next() for i in xrange(size)])

def group ( seq , size ) : if ( not hasattr ( seq , 'next' ) ) : seq = iter ( seq ) while True : ( yield [ seq . next ( ) for i in xrange ( size ) ] )
module-specific controller for teams @note: currently for development/testing/demo purposes only .