Python Python Update Function In Dictionary