    "[ \t]*:"				; and the final :
    "\\)"				; >>classes<<
    )
-  "Regexp for Python classes for use with the imenu package."
+  "Regexp for Python classes for use with the Imenu package."
   )
 
-(defvar imenu-example--python-method-regexp
+(defvar py-imenu-method-regexp
   (concat                               ; <<methods and functions>>
    "\\("                                ; 
    "^[ \t]*"                            ; new line and maybe whitespace

  ;; Emacs 19 requires this
  (if (boundp 'comment-multi-line)
      (setq comment-multi-line nil))
  ;; Install Imenu, only works for Emacs.
  (when (py-safe (require 'imenu))
    (make-variable-buffer-local 'imenu-create-index-function)
    (setq imenu-create-index-function
	  (function imenu-example--create-python-index))
    (setq imenu-generic-expression
	  imenu-example--generic-python-expression)
    (if (fboundp 'imenu-add-to-menubar)
	(imenu-add-to-menubar (format "%s-%s" "IM" mode-name)))
    )

     ))
  "Additional expressions to highlight in Python mode.")
(put 'python-mode 'font-lock-defaults '(python-font-lock-keywords))

;; have to bind py-file-queue before installing the kill-emacs-hook
(defvar py-file-queue nil
