ICE example for python - surprisingly nasty