Minor fix to make python3 compatible

Signed-off-by: Mansour Behabadi <mansour@oxplot.com>