sum values in nested dictionary python