code: def fastaAlignmentWrite(columnAlignment, names, seqNo, fastaFile,
                          filter=lambda x : True):
      
      fastaFile = open(fastaFile, 'w')
      columnAlignment = [ i for i in columnAlignment if filter(i) ]
      for seq in xrange(0, seqNo):
          fastaFile.write(">%s\n" % names[seq])
          for column in columnAlignment:
              fastaFile.write(column[seq])
          fastaFile.write("\n")
      fastaFile.close()
docs: Writes out column alignment to given file multi-fasta format