Update Function In Python Dictionary Methods