tools: Fix python2 syntax error

Signed-off-by: Sol Jerome <sol.jerome@gmail.com>