[utils] fix python3 map incompatability