Python in emacs

C-c C-z : open a python shell C-c C-c : run the content of the buffer in the opened python shell C-c C-r : run the selected region in the python shell