Making salt.modules.cmdmod python3 compatible