that would be perfect:
d = dotty(smart_list=True)
some_list = [1, 2, {"work": "right?"}]
# if there is no list - just treat it as a key
d["one.2.three"] = "hey ho"
assert d["one.2.three"] == "hey ho"
# if there is a list, use it :)
d["this.should"] = some_list
assert d["this.should.2.work"] = "right?"
that would be perfect: