python-shell-send-buffer-and-switch function written.