made utils compatible with python2

Change-Id: I6c2a007d603771e38e995453e410b6dc1d7001e6