def write_json(args, score):
    try:
        outfile = open(args[3], 'w')
    except IndexError:
        print('output_location not found')
        print('saving test json at "./test_data/data.json"')
        outfile = open('./test_data/data.json', 'w+')
    finally:
        json.dump(score, outfile)
        outfile.close
def write_json(args, score):
    try:
        outfile = open(args[3], 'w')
    except IndexError:
        print('output_location not found')
        print('saving test json at "./test_data/data.json"')
        outfile = open('./test_data/data.json', 'w+')
    finally:
        json.dump(score, outfile)
        outfile.close