#Fixed two byte-compiler errors
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index 2905006..4c7cf50 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -203,7 +203,7 @@
   :type 'boolean
   :group 'python)
 
-(defvar py-temp-directory
+(defcustom py-temp-directory
   (let ((ok '(lambda (x)
 	       (and x
 		    (setq x (expand-file-name x)) ; always true
@@ -223,7 +223,7 @@
   :type 'string
   :group 'python)
 
-(defvar py-beep-if-tab-change t
+(defcustom py-beep-if-tab-change t
   "*Ring the bell if tab-width is changed.
 If a comment of the form