add numpy/networkx imports to util