Making salt/utils/validate/net python3 compatible