Addition of network.py

Contains a new Network class for generalized network creation as well as a Node class used by Network.