Metrics for python