def get_download_targets(args, config):
    """
    Retrieves seasons, game types and teams to download data for.
    """
    # setting target team(s)
    tgt_team = args.team
    if not tgt_team:
        teams = config['teams']
    else:
        teams = {k: v for (k, v) in config['teams'].items() if v == tgt_team}
    # setting target season(s)
    tgt_season = args.season
    if not tgt_season:
        seasons = config['seasons']
    else:
        seasons = [tgt_season]
    # setting target game type(s)
    tgt_game_type = args.game_type
    if not tgt_game_type or tgt_game_type == 'ALL':
        game_types = list(config['game_types'].keys())
    else:
        game_types = {k: v for (k, v) in config['game_types'].items() if v == tgt_game_type}

    return seasons, game_types, teams