Based on your usage below, it seems like you intended this to be a dictionary and not a list.