async def get_hero_list(ctx: HTTPRequestContext): """ Send hero list. """ parsed = await get_all_heroes(ctx) heroes = parsing.bl_get_all_heroes(parsed) built_dict = {"Offense": {}, "Defense": {}, "Tank": {}, "Support": {}} for hero in heroes: _parsed = await get_hero_data(ctx, hero.lower()) retHero = parsing.bl_find_heroes(_parsed) built_dict[retHero["role"]][hero] = retHero return built_dict