Python CGI script 500 error

I’ve been unable to resolve an issue with a simplified python cgi script. I’ve been through the knowledge base and the wiki.

The error log states …
“Premature end of script headers”

I have changed the permisions “chmod 755” and wrote an even simpler script. The script does execute properly and looks find when ran in the shell. Any ideas?

The script contains


print "Content-type: text/html"
print “Hello World!”