doc: revisions to metrics.py (3)