Making progress on the master script. Can encode and decode using the python network object