Python2.x and 3.x compatibility changes

Changes:
    - Fix imports.

Error on 3.x:
bmc_boot_test.py' failed: ModuleNotFoundError: No module named 'cPickle'

There is no cPickle in python 3.x.

Refer: https://docs.python.org/3.1/whatsnew/3.0.html#library-changes

Resolves: openbmc/openbmc-test-automation#1427

Change-Id: I21bcaf2507d31b40e07f6a3ab7839dd3dc577e33
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/obmc_boot_test.py b/lib/obmc_boot_test.py
index 97461c1..073e062 100755
--- a/lib/obmc_boot_test.py
+++ b/lib/obmc_boot_test.py
@@ -10,7 +10,10 @@
 import glob
 import random
 import re
-import cPickle as pickle
+try:
+    import cPickle as pickle
+except ImportError:
+    import pickle
 import socket
 
 from robot.utils import DotDict