   "Return function to construct candidate(s) for current `major-mode'."
   (pcase (ycmd-major-mode-to-file-types major-mode)
     (`("cpp") 'company-ycmd--construct-candidate-cpp)
+    (`("python") 'company-ycmd--construct-candidate-python)
     (_ 'company-ycmd--construct-candidate-generic)))
 
 (defun company-ycmd--get-candidates (cb prefix)

                            'meta meta 'kind kind 'doc doc 'params cand)
                candidates))))))

(defun company-ycmd--construct-candidate-generic (candidate prefix start-col)
  "Generic function to construct completion string from a CANDIDATE.


  :group 'company-ycmd)

(defconst company-ycmd--extended-features-modes
  '(c++-mode c-mode python-mode)
  "Major modes which have extended features in `company-ycmd'.")

(defun company-ycmd--extended-features-p ()
