Originally Posted by Apothem
Well I read it more "thoroughly" but still don't see anything about how to make a file the index page.
you don't have any index page. The idea of using cgi is to get and process requests and to generate the content of the page and sent to who request the page.
1. somebody ask your server to show a page http://example.com/mypage
2. the server send the name of the page, mypage to the cgi script
3. the script generate the page and write the result to the stdout.
you need to understand what is and how cgi work but this have nothing to do with python. For cgi you can use any language,
Edit: there is a convention, when mypage is '', http://example.com/ then the server return the index page, index.html, index.php, or how ever are the server settings