metric.__init__.py: finished Metric.from_py()