The method to debug such issues is to redirect the prints to stderr stream - which is captured in /var/log/apache2/error.log
import sys
print sys.stderr, "
After spending some more time with gblogger and trying to get things to work with Emacs/Zsh; I found e-blog through Xahlee's blog post.
I must say, I am pleased with the interface exposed by this package and the ease with which it installed and works - even for editing existing blog posts. Needless to say, I have switched to e-blog for posting entries to this blog.
g-auth.el:
(defvar g-auth-url-pattern
"'https://www.google.com/accounts/ClientLogin?service=%s'"
"URL to login to Google services.")
gblogger.el:
(defun gblogger-new-entry (url)
"Create a new Blog post."
...
...
(setq gblogger-this-url (concat "'" url "'" ))
...
...
(substitute-command-keys "Use \\[gblogger-publish] to publish your edits ."))))