build: Fix build error with python3

Change-Id: I2a35d66744330feefeb2c7f95a0f6e4e4c339358
Refs: #1956