     (py-execute-region (mark) (point) async)))
 
 
-(defun py-execute-string (string &optional async)
+(defun py-execute-string (string proc &optional async)
   "Send the argument STRING to a Python interpreter.
 
 If there is a *Python* process buffer it is used.



(defun py-kill-emacs-hook ()
  "Delete files in `py-file-queue'.
These are Python temporary files awaiting execution."
  (mapcar #'(lambda (filename)
	      (py-safe (delete-file filename)))
	  py-file-queue))

;; arrange to kill temp files when Emacs exists
(add-hook 'kill-emacs-hook 'py-kill-emacs-hook)

(defvar ppy-which-args  ppy-python-command-args)
(defvar pyd-which-args  pyd-python-command-args)
(defvar pyo-which-args  pyo-python-command-args)
(defvar py-which-bufname-moved "Python")
(make-variable-buffer-local 'py-which-shell)
(make-variable-buffer-local 'ppy-which-shell)
(make-variable-buffer-local 'pyd-which-shell)
