Dynamic attributes using dicts and lists