def write_config(config, path):
    """
    Write a configuration file.

    Arguments
    config -- a configuration
    path -- the location to serialize config
    """
    with open(path, 'w') as output_file:
        config.write(output_file)
