Modified topo.py