Ses Lambda Python If Statement