def write_options_to_YAML(self, filename):
fd = open(filename, "<STR_LIT:w>")<EOL>yaml.dump(_options_to_dict(self.gc), fd, default_flow_style=False)<EOL>fd.close()<EOL>
Writes the options in YAML format to a file.

        :param str filename: Target file to write the options.