test/py: make net test aware of USB and PCI enumeration