Making a HTML table out of a CGI file using python