added subnet.py util