Update network.py

Added windows compatibility (UGLY!). The point is not to depend on third party libraries, so we resort to ugly subprocess text mangling. It could be much better with wmi, or win32api but this way,look ma, no dependencies!