Better python mode, using some code from http://www.kurup.org/blog/2012/10/24/emacs-for-python-programming/