Merge pull request #273 from sjsrey/network

Moving code from wed_modular.py to wed.py and some utility functions