code: def write(self, file_or_filename):
          
          if isinstance(file_or_filename, basestring):
              file = open(file_or_filename, "wb")
          else:
              file = file_or_filename
  
          self.writer = csv.writer(file)
  
          super(CSVWriter, self).write(file)
docs: Writes case data as CSV.