(python-shell-prompt-detect): Use unwind-protect to try and not leave file behind in case of error.
Attach a file by drag & drop or click to upload