Making salt.utils.network python3 compatible