read_topology_hna.py: better isinsubnet() function