def METHOD_NAME(rhapi):
    timer_modes = [
        rhapi.__('Fixed Time'),
        rhapi.__('No Time Limit'),
    ]
    tones = [
        rhapi.__('None'),
        rhapi.__('One'),
        rhapi.__('Each Second')
    ]
    win_conditions = [  #pylint: disable=unused-variable
        rhapi.__('None'),
        rhapi.__('Most Laps in Fastest Time'),
        rhapi.__('First to X Laps'),
        rhapi.__('Fastest Lap'),
        rhapi.__('Fastest Consecutive Laps'),
        rhapi.__('Most Laps Only'),
        rhapi.__('Most Laps Only with Overtime')
    ]
    start_behaviors = [
        rhapi.__('Hole Shot'),
        rhapi.__('First Lap'),
        rhapi.__('Staggered Start'),
    ]
    formats = rhapi.db.raceformats
    payload = []
    for race_format in formats:
        # payload.append(race_format)
        payload.append({
            'Name': race_format.name,
            'Mode': timer_modes[race_format.unlimited_time],
            'Duration (seconds)': race_format.race_time_sec,
            'Minimum Start Delay': race_format.start_delay_min_ms,
            'Maximum Start Delay': race_format.start_delay_max_ms,
            'Staging Tones': tones[race_format.staging_delay_tones],
            'Win Condition': race_format.win_condition,
            'Laps to Win': race_format.number_laps_win,
            'Team Racing': race_format.team_racing_mode,
            'First Crossing': start_behaviors[race_format.start_behavior],
        })
    return payload