update key in nested dictionary python