jolokia_metrics: fixed compatibility with python 2.4