def export_states_to_yaml(exploration_id, version=None, width=80):
 exploration = get_exploration_by_id(exploration_id, version=version)
 exploration_dict = {}
 for state in exploration.states:
  exploration_dict[state] = utils.yaml_from_dict(exploration.states[state].to_dict(), width=width)
 return exploration_dict

def export_states_to_yaml ( exploration_id , version = None , width = 80 ) : exploration = get_exploration_by_id ( exploration_id , version = version ) exploration_dict = { } for state in exploration . states : exploration_dict [ state ] = utils . yaml_from_dict ( exploration . states [ state ] . to_dict ( ) , width = width ) return exploration_dict
returns a python dictionary of the exploration .