diff --git a/vtools/cli.py b/vtools/cli.py
index f0079b2b6541669687a96c9c74e8f7587ed12796..37ea32f78db3e7ed2b712167f4a73cf9bd561579 100644
--- a/vtools/cli.py
+++ b/vtools/cli.py
@@ -52,7 +52,7 @@ def evaluate_cli(call_vcf, positive_vcf, call_samples, positive_samples,
         print(json.dumps(st))
     else:
         with click.open_file(stats, 'w') as fout:
-            print(json.dumps(st), file=fout)
+            fout.write(json.dumps(st))
 
     # If there were discordand records, and a discordant-vcf should be written
     if len(disc) > 0 and discordant_vcf: