doc: revisions to metrics.py (4)