KM Variable value to Python variable

Hi All,
Is there a way that I can grab a KM Value and pass it to a python file?
I want to use a specific virtual env to execute my python code, therefore I am unable to use the script text option. I have been looking around a bit but I have been unable to find a solution.
In short I need to activate a specific virtual environment grab the variables from a KM macro and pass it to a python script, is this possible?

Thanks for your help

Click the little gear icon in the top right corner and scroll down to Help for the Execute Shell Script and you'll find what you need.

:man_facepalming:t5: Thanks man
Sorry for the noob question

Yes. @mrpasini has given you the method and link to access this info.

I just want to emphasize this:
Accessing Keyboard Maestro Variables in Python is somewhat different.
See this example.

Thank you sir! I appreciate you guys! :+1:t5: