python bob shortened the conditionals