Use python to generate the index page.