removed pep8 errors for network.py