   (switch-to-buffer-other-window (make-comint "Python" py-python-command))
   (make-local-variable 'comint-prompt-regexp)
   (setq comint-prompt-regexp "^>>> \\|^[.][.][.] ")
-  (set-process-filter (get-buffer-process (current-buffer)) 'py-process-filter)
+  (set-process-filter (get-buffer-process (current-buffer)) nil)
   (set-syntax-table py-mode-syntax-table)
   (local-set-key [tab] 'self-insert-command))
 

	  "\\)"))
  

;; Regexp matching lines to not outdent after.
(defconst py-no-outdent-re
  (concat "\\(" (mapconcat 'identity
			   '("try:"
			     "except\\(\\s +.*\\)?:"
			     "while\\s +.*:"
			     "for\\s +.*:"
			     "if\\s +.*:"
			     "elif\\s +.*:"
			     "\\(return\\|break\\|raise\\|continue\\)[ \t\n]"
			     )
			   "\\|")
	  "\\)"))

;; Regexp matching a function, method or variable assignment.  If you

")

(defvar python-font-lock-keywords
  (let* ((keywords '("and"        "assert"     "break"      "class"
		     "continue"   "def"        "del"        "elif"
		     "else:"      "except"     "except:"    "exec"
		     "finally:"   "for"        "from"       "global"
