sys.stdout access restricted by mod_wsgi
work around
import sys sys.stdout = sys.stderr
http://code.google.com/p/modwsgi/wiki/DebuggingTechniques
or (probably preferable)
WSGIRestrictStdout Off
http://blog.dscpl.com.au/2009/04/wsgi-and-printing-to-standard-output.html
