Hello,
Thanks for reaching out to us. I am not sure what kind of Python script you are looking for.
But I do have posted the guidance of how to integrate machine learning model with PowerBI below. Please let me know more about your requirement so that we can help to find out the best guidance.
https://learn.microsoft.com/en-us/power-bi/connect-data/service-aml-integrate
Regards,
Yutong