OK, two quick things:
1) what's your script actually called? The filename that is.
2) assuming your script ends in .cgi, the part you quoted here:
# To use CGI scripts: # #AddHandler cgi-script .cgi
clearly shows that the AddHandler line is still commented out.
Take away the # and reboot apache if that's how your conf file actually looks. Don't forget to change the permissions on the file if you haven't already done so.