Making salt.utils.smtp python3 compatible