Making salt.modules.pkgin python3 compatible