code: def write_alignment(self, filename, file_format, interleaved=None):
          
          if file_format == 'phylip':
              file_format = 'phylip-relaxed'
          AlignIO.write(self._msa, filename, file_format)
docs: Write the alignment to file using Bio.AlignIO