This is more of a style thing than anything else. Nothing stopping you from writing Python in an idempotent and functional style. I do it all the time.
def winning_team(game_log: GameLog) -> Team:
team_a, team_b = get_teams(game_log)
points_a = get_points(game_log, team_a)
points_b = get_points(game_log, team_b)
return team_a if points_a > points_b else team_b