Making salt.utils.templates python3 compatible