Making salt.utils.master python3 compatible