def METHOD_NAME(mtp, filename=CONFIG):
    cparser = PuddleConfig(filename)
    info_section = 'info'
    cparser.set(info_section, NAME, mtp.name)
    for key in ['name', 'desc', 'file_pattern', 'fields',
                'jfdi', 'leave_existing']:
        cparser.set(info_section, key, getattr(mtp, key))
    for key in ['album_bound', 'track_bound']:
        cparser.set(info_section, key, int(getattr(mtp, key) * 100))
    cparser.set(info_section, 'numsources', len(mtp.profiles))
    for num, tsp in enumerate(mtp.profiles):
        section = 'config%s' % num
        name = tsp.tag_source.name if tsp.tag_source else ''
        cparser.set(section, 'source', name)
        cparser.set(section, 'if_no_result', tsp.if_no_result)
        cparser.set(section, 'fields', ','.join(tsp.fields))
        cparser.set(section, 'replace_fields', ','.join(tsp.replace_fields))