Made net/ somewhat pep8 compliant (except for tests)