Simple If Statement Python Dictionary Operations