               (tern-ac-setup))))
 
 ;; FlyCheck
+(if (not (require 'flycheck-mypy nil t)
+         (require 'flycheck-mode nil t)))
 (when (require 'flycheck nil t)
   (add-hook 'python-mode-hook 'flycheck-mode)
   (add-hook 'html-mode-hook 'flycheck-mode)

  (add-to-list 'auto-mode-alist '("\\.markdown$" . markdown-mode)))

;; Python-mode
(require 'pyenv-mode-auto nil t)

(when (require 'jedi nil t)
  (add-hook 'python-mode-hook 'jedi:setup))

(add-hook 'inferior-python-mode-hook
          (lambda ()
            (dolist (process (process-list))

  (add-hook 'web-mode-hook (lambda ()
                             (imenu-add-menubar-index))))

;; php-mode
(when (require 'php-mode nil t)
  (dolist (hook (list
