Update Function In Python Dictionary