Unity Python Scripting Package 7.0.1 how to attach script to game object

System: MAc OX 13.6; unity 2023.2.3f1, unity Python Scripting 7.0.1.

All editor examples of using Python code according to
https://docs.unity3d.com/Packages/com.unity.scripting.python@7.0/manual/python-from-csharp.html
work as they should on my system.

Now I am trying to attach a c# script using python code to a game object like described here:

python “p_ColorChanger.py” script:
def change_color():
return (1, 0, 0) # RGB for red

c# ColorChanger script:
using UnityEngine;
using Python.Runtime;

public class ColorChanger : MonoBehaviour
{
void Start()
{
using (Py.GIL())
{
dynamic pythonScript = Py.Import(“p_ColorChanger.py”);
Color newColor = pythonScript.change_color();
GetComponent().material.color = new Color(newColor[0], newColor[1], newColor[2]);
}
}
}

The ColorChanger c# script as well at the python script are located in the Assets/NewScripts folder. I have created an Assembler definition Reference pointing to “com.unity.scripting.python.editor” in the folder → attaching the c# script to the object results in error that script is an editor script.
Attaching the c# script before typing in the code to the object and changing the code to the one mentioned above let me start the game but error “The class named ‘ColorChanger’ is not derived from MonoBehaviour or ScriptableObject!” is shown and color is not changed.

removing the Assembler definition Reference results in error “Assets/NewScripts/ColorChanger.cs(2,7): error CS0246: The type or namespace name ‘Python’ could not be found (are you missing a using directive or an assembly reference?)” when starting the game.

Here my question: How should i define the Assembler definition Reference / to which Assembler definition should it point to make the script attachable to a GameObeject and playable?