Fix prelude test project work with popwin.
Rename logging snippet in python-mode.
Protect Emacs snippets from final new line.