Code cleanup (per pylint)

* Metrics class now inherits from object (new-style classse)
* Lots more docstrings (kind of annoying)
* Long lines split
* Trailing whitespace cleanup