switched functions in dump_transition_stats.py