usertools: fix telemetry client with python 3