Dynamic attributes using dictionaries and lists