def generate_fathead(folder, processes=CPU_COUNT):
 docs_folder = op.abspath(folder)
 files_to_parse = glob.glob(op.join(docs_folder, '*.html'))
 pool = Pool(processes)
 output = pool.map(parse_file, files_to_parse)
 with open(OUTPUT_FILE, 'w') as fp:
  fp.writelines(output)

def generate_fathead ( folder , processes = CPU_COUNT ) : docs_folder = op . abspath ( folder ) files_to_parse = glob . glob ( op . join ( docs_folder , '*.html' ) ) pool = Pool ( processes ) output = pool . map ( parse_file , files_to_parse ) with open ( OUTPUT_FILE , 'w' ) as fp : fp . writelines ( output )
process documentation and write fathead file .