clean up network,py and Makefile