fix python issure for emacs 24.3 or above