Merge "metrics_pdd_hook: make compatible with python3" into sc-dev