[WIP] ONOS-8091 Port python script and utilities to python3

Steps performed so far:
- Updated bash scripts and similar to explicitly invoke python3 (instead of python)
- Updated all python scripts using 2to3

Testing these changes will be a major headache because:
- different scripts are executed in different environments
  (e.g., Jenkins, cell servers, tutorial VMs, etc.)
- we don’t have control on all environments
- some environments we used to control have been dismissed
  (e.g., cell servers)

The approach for now is to focus on the essentials:
- Jenkins jobs for pre-merge and release

Test and fix everything else as the need arises.

Change-Id: I943e214760c9dea9a7ded0d47ef08adbc0ed0bec
diff --git a/tools/test/scenarios/bin/delete-netcfg.py b/tools/test/scenarios/bin/delete-netcfg.py
index 6e309c2..410bc47 100755
--- a/tools/test/scenarios/bin/delete-netcfg.py
+++ b/tools/test/scenarios/bin/delete-netcfg.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
 
 import requests
 
@@ -8,7 +8,7 @@
 
 
 if len(sys.argv) != 3:
-    print "usage: delete-netcfg onos-node config-name"
+    print("usage: delete-netcfg onos-node config-name")
     sys.exit(1)
 
 node = sys.argv[1]
@@ -18,7 +18,7 @@
                               auth=HTTPBasicAuth('onos', 'rocks'))
 
 if intentRequest.status_code != 204:
-    print intentRequest.text
+    print(intentRequest.text)
     sys.exit(1)
 
 sys.exit(0)