def generate_config_file(self):
        lines = ["# Configuration file for %s."%self.name]
        lines.append('')
        lines.append('c = get_config()')
        lines.append('')
        for cls in self.classes:
            lines.append(cls.class_config_section())
        return '\n'.join(lines)
generate default config file from Configurables
dataset/ETHPy150Open ipython/ipython-py3k/IPython/config/application.py/Application.generate_config_file