The metric.py code is separate from much of the other PE stuff, so suggest it's move to a different folder