Making salt.utils.winapi python3 compatible