Typing replaces buffer with scratch buffer
When I open a file in python-mode and try typing some text, the buffer is replaced with some scratch buffers (see the attached screenshot). Specifically it does it
Also when I try to exit emacs it tells me there is a Python process running. Is there a way to tell python-mode to never run a Python process?