data ={'a': {'b': {'c': 1}}}
from functools import reduce
class CustomDict(dict):
def __getitem__(self, key):
return reduce(lambda acc, x: acc.__getitem__(x), key.split('.'), super())
data = CustomDict({'a': {'b': {'c': 1}}})
print(data['a.b.c'])