Made net/ somewhat pep8 compliant (except for tests)

I've yet to do any testing whatsoever. Maybe it doesn't even compile.