Finally I add an recursion function to update nested dicts