def write_config(cfg_instance, cfg_file):
    """
    Write updated configuration back to config
    file
    """
    print('Writing updated config file to {}'.format(cfg_file))
    with open(cfg_file, 'w') as configfile:
        cfg_instance.write(configfile)
