Making salt/version python3 compatible