Declared globals in network.py for kw

kw is dictionary of keywords to pass as args to the single iteration
function