Bugfixes for Voldemort & Distributed Test Framework

* Added None Check when writing out important_sub_metrics in metric.py
* Fix attribute error
Do we need parentheses for the else case too?