Www folder location for /local documents

How can I execute a py script from the local folder?
Something like:
https://MY_HA_URL:8123/local/test.py

There is something like cgi that I can use to execute the test.py?

Thank you!