root@www:~# cat > /usr/lib/cgi-bin/test_script <<'EOF'

#!/usr/bin/env python

print "Content-type: text/html\n\n"

print "Hello CGI\n"

EOF

root@www:~# chmod 705 /usr/lib/cgi-bin/test_script