Fix #549 -- Avoid breaking on mod_python.

(Please don't use mod_python.)