       (if (and (not (zerop (car state)))
 	       (not (eobp)))
 	  (progn
-	    (parse-partial-sexp (point) (point-max)
-				(if py-parse-partial-sexp-works-p
-				    0 (- 0 (car state)))
-				nil state)
+	    (parse-partial-sexp (point) (point-max) 0 nil state)
 	    (forward-line 1))))))
 
 ;; t iff statement opens a block == iff it ends with a colon that's


See the `\\[py-shell]' docs for additional warnings."
  (interactive "r")
  (or (< start end) (error "Region is empty"))
  (let ((pyproc (get-process "Python"))
	fname)
    (if (null pyproc)
	(shell-command-on-region start end py-python-command)
      ;; else feed it thru a temp file
      (setq fname (py-make-temp-name))
      (write-region start end fname nil 'no-msg)

  (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)) nil)
  (set-syntax-table py-mode-syntax-table)
  (local-set-key [tab] 'self-insert-command))

