<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def spit_config(self, conf_file, firstwordonly=False):
 """conf_file a file opened for writing."""


        cfg = ConfigParser.RawConfigParser()
        for sec in _CONFIG_SECS:
            cfg.add_section(sec)

        sec = 'channels'
        for i in sorted(self.pack.D):
            cfg.set(sec, str(i),
                    self.pack.name(i, firstwordonly=firstwordonly))

        sec = 'conditions'
        for k in self.sorted_conkeys():
            cfg.set(sec, k, self.conditions[k])

        cfg.write(conf_file)