doc: revisions to metrics.py (1)