Python Dictionary Update Value If Expression