Making salt/loader python3 compatible