Create metrics.py