(py-shell): Set the default shell if not set yet.  It's sometimes
convenient to call py-shell before the first Python file has been
visited.
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index d7818f1..0dbf202 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -1207,6 +1207,9 @@
 non-Python process buffers using the default (Emacs-supplied) process
 filter."
   (interactive "P")
+  ;; Set the default shell if not already set
+  (when (null py-which-shell)
+    (py-toggle-shells py-default-interpreter))
   (let ((args py-which-args))
     (when (and argprompt
 	       (interactive-p)