diff --git a/src/naarad/metrics/metric.py b/src/naarad/metrics/metric.py
index <HASH>..<HASH> 100644
--- a/src/naarad/metrics/metric.py
+++ b/src/naarad/metrics/metric.py
@@ -292,7 +292,7 @@ class Metric(object):
     items = sub_metric.split('.')
     if sub_metric in self.important_sub_metrics:
       return True
-    if items[len(items)-1] in self.important_sub_metrics:
+    if items[-1] in self.important_sub_metrics:
       return True
     return False
Extend Diff to support URL based CDF csv file paths, also Fix issue <I>: cdf not plotted for sar important metrics