def writeDataRow(output_file, session_info, session_uservar_names, event_data):
 session_data = [str(i) for i in session_info[:(-1)]]
 session_user_data = [session_info.user_variables[sud_name] for sud_name in session_uservar_names]
 all_data = (((session_data + session_user_data) + [str(e) for e in event_data]) + session_user_data)
 output_file.write(' DCTB '.join(all_data))
 output_file.write('\n')

def writeDataRow ( output_file , session_info , session_uservar_names , event_data ) : session_data = [ str ( i ) for i in session_info [ : ( - 1 ) ] ] session_user_data = [ session_info . user_variables [ sud_name ] for sud_name in session_uservar_names ] all_data = ( ( ( session_data + session_user_data ) + [ str ( e ) for e in event_data ] ) + session_user_data ) output_file . write ( ' DCTB ' . join ( all_data ) ) output_file . write ( '\n' )
save a row of data to the output file .