   (insert "import argparse\nif __name__ == '__main__':\n    "))
 
 (global-set-key
- (kbd "s-d")
+ (kbd "s-i")
  (defun insert-pdb-breakpoint ()
    "Insert a pdb break."
    (interactive)

     )))

(global-set-key
 (kbd "s-i")
 (defun insert-ipdb-breakpoint ()
   "Insert a pdb break."
   (interactive)

(add-to-list 'company-backends 'company-jedi)

(add-hook 'python-mode-hook 'jedi:setup)
;;(jedi:install-server)
(setq jedi:environment-root "jedi")
(setq jedi:setup-keys t)
(setq jedi:complete-on-dot t)
(setq jedi:get-in-function-call-delay 10000) ; 10s delay before showing function call sigs

;; Virtualenv tools
(require 'virtualenvwrapper)
(venv-initialize-interactive-shells)
;; (venv-workon)
;; (venv-deactivate)
;; (venv-mkvirtualenv)
;; (venv-allvirtualenv)
;; (venv-allvirtualenv-shell-command)
;; Auto-activate w/ projectile... learn projectile
;; (setq projectile-switch-project-action
;;       '(lambda ()
;;          (venv-projectile-auto-workon)
;;          (projectile-find-file)))
;; (setq venv-dirlookup-names '(".venv" "pyenv" ".virtual"))


;; Utility functions
(require 'python-switch-quotes)

;; Enable code-folding by default
(add-hook 'python-mode-hook 'hs-minor-mode)

(defun insert-dunder-main ()
  "Insert a python main block."
