Use the PythonMetrics from the PerkTutor repository.