   "Setup Python developemnt environment."
   (py-auto-workon-maybe)
   (py-handle-virtualenvs)
+  (py-set-newline-and-indent)
   (py-set-flycheck-flake8rc-for-current-git-repo))
 
 (add-hook 'python-mode-hook #'py-setup)

  (pyvenv-deactivate)
      (pyvenv-workon (car venvs-matched)))))


(defun py-handle-virtualenvs ()
  "Handle Python virualenvs."

(defun py-set-flycheck-flake8rc-for-current-git-repo()
  (require 'flycheck)
  (let* ((curr-git-remote-url (git-get-current-remote-name))
	 (flake8rc-filename "flake8rc"))
    (if (and curr-git-remote-url
	     (is-pylons-project-repository curr-git-remote-url))
	(setq flake8rc-filename "pylons.flake8rc"))
    (setq-default flycheck-flake8rc (concat "~/.config/" flake8rc-filename))))

(defun pyvenv-activate-safely (directory)
