Making salt.modules.xapi python3 compatible