def headerwrite(thefile,pagename): header = open(thefile,"a") header.write("\n\n \n \n \n \n TCG\n \n \n \n \n
\n") header.close() def footerwrite(thefile): footer = open(thefile,"a") footer.write("
\n \n") footer.close()