is it required to call the python script from C# only?
Can't you directly expose the Python code as an API endpoint and then call the API endpoint from the C# as it will be easier?