Fix tests/unit/crypto/test_utils.py under Python3

Change-Id: I7179ce21d119fbb202f01ed4078106a284526387
Merge "Fix tests/unit/crypto/test_utils.py under Python3"