Making salt.modules.key python3 compatible