Updating PythonMetrics for compatibility with new PythonMetricsCalculator module.