def call_each(seq):
 try:
  reduce((lambda _, y: y()), seq)
 except TypeError as e:
  if (text_type(e) != 'reduce() of empty sequence with no initial value'):
   raise

def call_each ( seq ) : try : reduce ( ( lambda _ , y : y ( ) ) , seq ) except TypeError as e : if ( text_type ( e ) != 'reduce() of empty sequence with no initial value' ) : raise
calls each element of sequence to invoke the side effect .