Continue Outer Loop Python Dictionary Syntax