Update check_networks.py

Removed obsolete code.