pymacs.el.in (pymacs-called-interactively-p): New function.
From Emacs 22, interactive-p is deprecated, and now raises a warning.
Reported by Leo Liu.