fixed missing variable in dump_netstats.py