Are there other ways to get data from a dictionary in Python?