def write_file(filename, data):
    with open(filename, 'w') as fname:
        json.dump(data, fname, indent=4)
    return
def write_file(filename, data):
    with open(filename, 'w') as fname:
        json.dump(data, fname, indent=4)
    return