Fix the expression to be python3 compatible.

the oct function in python2 and python3 return different results.
Instead of comparing strings, compare the integer results directly.

Change-Id: Ic802d8dcb27067fa4b1e57eb549565516715c94e
Merge "Fix the expression to be python3 compatible."