Update Function Python Dictionary