def write_yara(self, output_file):
fout = open(output_file, '<STR_LIT:wb>')<EOL>fout.write('<STR_LIT:\n>')<EOL>for iocid in self.yara_signatures:<EOL><INDENT>signature = self.yara_signatures[iocid]<EOL>fout.write(signature)<EOL>fout.write('<STR_LIT:\n>')<EOL><DEDENT>fout.close()<EOL>return True<EOL>
Write out yara signatures to a file.