Continue Outside Loop Python Dictionary Syntax