def headerwrite(output,title,headerone,desc,main=False,local=False): header = open(output, "a") header.write("\n\n\n\n\n\n\n\n\n\n\n\n" + title + "\n\n\n\n
\n
\n\n

" + headerone + "

\n" + desc + "\n") if not main: header.write("

\nmain page\n\n

\n") header.write("
\n") header.close() def footerwrite(output,main=False,local=False): footer = open(output, "a") footer.write("
\n\n
\n\n\n") footer.close()