def writejson(data, outfile):
    with open(outfile, 'w') as f:
        json.dump(data, f)
    return outfile
def writejson(data, outfile):
    with open(outfile, 'w') as f:
        json.dump(data, f)
    return outfile