def _yield_all_steps(emr_conn, cluster_id, *args, **kwargs):
 for resp in _repeat(_patched_list_steps, emr_conn, cluster_id, *args, **kwargs):
  for step in getattr(resp, 'steps', []):
   (yield step)

def _yield_all_steps ( emr_conn , cluster_id , * args , ** kwargs ) : for resp in _repeat ( _patched_list_steps , emr_conn , cluster_id , * args , ** kwargs ) : for step in getattr ( resp , 'steps' , [ ] ) : ( yield step )
get all steps for the cluster .