Making salt.modules.tls python3 compatible