Continue Not Properly In Loop Python Dictionary