def make_file(data, file_name=None):
    """
    Stores config data into the file
    :param data: config data to store
    :param file_name: config file name
    """
    file_name = file_name or 'conf.ini'
    if len(file_name.split('.')) < 2:
        file_name = '{file_name}.ini'.format(file_name=file_name)
    with open(file_name, mode='w+') as f:
        for section, section_val in data.items():
            f.write('[{section_name}]\n'.format(section_name=section))
            for key, val in section_val.items():
                f.write('{key} = {val}\n'.format(key=key, val=val))
            f.write('\n')
