Implementing MaterialPackageManager.autoedit_definition_py().