Making salt.modules.network python3 compatible