Migrates a configuration file using a confirm schema.

def migrate(schema_file, config_file):
    '''Migrates a configuration file using a confirm schema.'''

    schema = load_schema_file(open(schema_file, 'r'))
    config = load_config_file(config_file, open(config_file, 'r').read())

    config = append_existing_values(schema, config)

    migrated_config = generate_config_parser(config)
    migrated_config.write(sys.stdout)