Create proper output file when using python anonymizer