Python dictionary with attributes in addition to keys