Making salt.output.txt python3 compatible