Update test_vnf.py to support py3