title: '_csv.writer' object has no attribute 'write'
body: <p>I am not sure what the problem is here. I have a csv file I want to filter. I want to remove all lines starting with '@' and all lines where the third column is the string 'chrM'. Im basically setting my code up to be like the answer here:</p>
  
  <p><a href="https://stackoverflow.com/questions/12592544/typeerror-expected-a-character-buffer-object">TypeError: expected a character buffer object</a></p>
  
  <p>But Im getting an error.</p>
  
  <pre><code>import re
  import csv
  
  inputSamFile = 'excerpt'
  outSamFile = 'filternoM'
  
  with open(inputSamFile) as inputSam, open(outSamFile, 'wt') as outSam:
      inputSamCont = csv.reader(inputSam, delimiter = '\t')
      outSamCont = csv.writer(outSam, delimiter = '\t')
      for line in inputSamCont:
          if line[0].startswith('@'):
              continue
          elif line[2] == 'chrM':
              continue
          else:
              outSamCont.write(line)
  </code></pre>
  
  <p>Traceback (most recent call last):
    File "filterMito.py", line 19, in 
      outSamCont.write(ProcessLine(line))
  AttributeError: '_csv.writer' object has no attribute 'write'</p>
  
  <p>What am I doing wrong</p>