Added python script networks.py, same code as in notebook...