Update QMetric.py

clean up little bit