def _yield_all_clusters(emr_conn, *args, **kwargs):
 for resp in _repeat(emr_conn.list_clusters, *args, **kwargs):
  for cluster in getattr(resp, 'clusters', []):
   (yield cluster)

def _yield_all_clusters ( emr_conn , * args , ** kwargs ) : for resp in _repeat ( emr_conn . list_clusters , * args , ** kwargs ) : for cluster in getattr ( resp , 'clusters' , [ ] ) : ( yield cluster )
make successive api calls .