Emacs to Python interface