net.py -> net module

split up net.py into appropriate files, made it a module