Handle case when python files not containing metrics are in the metrics directory.