Create mnet.py

requires tools.py