Fix python3.x errors

Error:  ModuleNotFoundError: No module named 'exceptions'

Resolves  openbmc/openbmc-test-automation#1428

Change-Id: Ie0956670e8345dcda880feb02b7d96a045695a4c
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/bmc_ssh_utils.py b/lib/bmc_ssh_utils.py
index 51805c2..059ba9a 100755
--- a/lib/bmc_ssh_utils.py
+++ b/lib/bmc_ssh_utils.py
@@ -6,7 +6,10 @@
 """
 
 import sys
-import exceptions
+try:
+    import exceptions
+except ImportError:
+    import builtins as exception
 import re
 import gen_print as gp
 import gen_valid as gv
diff --git a/lib/gen_robot_ssh.py b/lib/gen_robot_ssh.py
index 1928d69..9954c1b 100755
--- a/lib/gen_robot_ssh.py
+++ b/lib/gen_robot_ssh.py
@@ -9,7 +9,10 @@
 import re
 import socket
 import paramiko
-import exceptions
+try:
+    import exceptions
+except ImportError:
+    import builtins as exception
 
 import gen_print as gp
 import func_timer as ft