You can use `.splitlines()` instead of `.strip().split('\n')`. Also, it's probably worth adding a helper to extract the metrics.