'Iterate over all user pokemons and nickname if needed'

def work(self):

    for pokemon in pokemons().all():
        if ((not pokemon.is_favorite) or (not self.ignore_favorites)):
            if (pokemon.iv >= self.nickname_above_iv):
                if self._nickname_pokemon(pokemon):
                    action_delay(self.nickname_wait_min, self.nickname_wait_max)
