title: I'm having trouble to convert a tuple to a string maintaining the parentheses
body: <p>What I want to do is write the output:</p>
  
  <pre><code>Beate Adenauer, german, (hifi; phones), 11:12, 140
  </code></pre>
  
  <p>However the output I'm having with the code I have is:</p>
  
  <pre><code>Beate Adenauer, german, hifi; phones, 11:12, 140
  </code></pre>
  
  <p>What can I do differently?</p>
  
  <pre><code>    header='\n'.join(header)
      out_file=open(file_name,'w')
      out_file.write(str(header)+ '\n')
      out_file.write('Operators:'+'\n')
      for i in operators:
              domain = []
              for dom in i:
                      if type(dom)==tuple:
                              domain.append('; '.join(str(x) for x in dom))
                      else:
                              domain.append(str(dom))
  
              out_file.write(', '.join(domain))
              out_file.write('\n')
  </code></pre>