Crashing Python, and need to check for ESC

Apparently Pythonscripts and Discourse don’t play too well together…
Hashtags and indents kind of mess this up a bit.