Hi,
Could you try the below script instead? Please update the Python version based on your requirement.
Thanks.