AddHandler cgi-script .py
Options +ExecCGI
ErrorDocument 404 /cgi/main.py
ErrorDocument 500 "A very nasty bug found his way onto this very server"