Fixed the `get_tastes` function

Replaced eval with getattr
Replaced the for loop with a list comprehension