scene: allow postmortem debugging after error in draw

Also small improvement in similar code in event.py
add import sys
Merge pull request #311 from almarklein/scene-pm

scene: allow postmortem debugging after error in draw