Continue Outside Loop Python Dictionary Update Function