cr2: Export the dynamic classes in the global namespace

The plotter and other tools expect the classes to be exposed to the
cr2.sched namespace. This wasnt happening for the case of dynamically
generated classes.

Change-Id: I06507f65aa68b40fa3f701d057658fa3d4fe5734
Signed-off-by: Kapileshwar Singh <kapileshwar.singh@arm.com>
diff --git a/cr2/sched.py b/cr2/sched.py
index 8d7078c..410ad94 100644
--- a/cr2/sched.py
+++ b/cr2/sched.py
@@ -57,9 +57,17 @@
 
 Run.register_class(SchedLoadAvgTask, "sched")
 
-register_dynamic("SchedLoadAvgCpu", "sched_load_avg_cpu:", "sched")
-register_dynamic("SchedContribScaleFactor", "sched_contrib_scale_f:", "sched")
-register_dynamic("SchedCpuCapacity", "sched_cpu_capacity:", "sched")
+SchedLoadAvgCpu = register_dynamic("SchedLoadAvgCpu",
+                                   "sched_load_avg_cpu:",
+                                   "sched")
+
+SchedContribScaleFactor = register_dynamic("SchedContribScaleFactor",
+                                           "sched_contrib_scale_f:",
+                                           "sched")
+
+SchedCpuCapacity = register_dynamic("SchedCpuCapacity",
+                                    "sched_cpu_capacity:",
+                                    "sched")
 
 class SchedCpuFrequency(Base):
     """Corresponds to Linux kernel trace event power/cpu_frequency"""