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