Simple If Statement Python Dictionary Syntax