corrected syntax error in netowrks.py