fix #13 - add type check to network.py