Metrics are now new-style. Categories are semi-new style.
Now working with Python 2.7.
Changed metrics to new-style. Added Python 2.7 compatibility.