   (defun jedi-setup-venv ()
     "Activates the virtualenv of the current buffer."
     (let ((project-name (project-name buffer-file-name)))
-      (when project-name (venv-workon project-name))))
-
-  (setq jedi:setup-keys t)
-  (setq jedi:complete-on-dot t)
+      (when project-name (venv-workon project-name)))
+    (jedi:setup)
+    (setq jedi:setup-keys t)
+    (setq jedi:complete-on-dot t))
+
 
   (defun my-python-mode-hook ()
     (flycheck-virtualenv-setup)

  ; (dotemacs-init-latex)
  ; (dotemacs-init-scala)
  (dotemacs-init-mapserver)

  ;; ;; other modes
  (dotemacs-init-dired)
  (dotemacs-init-org)

  (add-to-list 'auto-mode-alist '("\\.inc\\'" . mapserver-mode))
  t)

(defun dotemacs-init-plantuml ()
  ;; active Org-babel languages
  (org-babel-do-load-languages
   'org-babel-load-languages
   '(;; other Babel languages
     (plantuml . t)))

  (setq org-plantuml-jar-path "/usr/share/plantuml/plantuml.jar")
  t)

(defun dotemacs-init-org ()
  (setq org-todo-keywords
