def writeOutputFileHeader(output_file, session_metadata_columns, log_entry_names):
 allcols = ((session_metadata_columns + log_entry_names) + session_uservar_columns)
 output_file.write(' DCTB '.join(allcols))
 output_file.write('\n')

def writeOutputFileHeader ( output_file , session_metadata_columns , log_entry_names ) : allcols = ( ( session_metadata_columns + log_entry_names ) + session_uservar_columns ) output_file . write ( ' DCTB ' . join ( allcols ) ) output_file . write ( '\n' )
writes the header line at the top of the log file .