Inline If Statement Python Dictionary