python update nested dictionary without overwriting