fixed subnets.py