Making salt.modules.gpg python3 compatible