Hello @Enduro,
I would recommend opening a Meraki support case to help investigate further, if you have not done so already. An internal server error message is something that Meraki support can look for more information about internally.
Also, does the same message occur if you run the API call independently of Python? Postman and curl can both be leveraged for testing API calls too.
If you found this post helpful, please give it kudos. If my answer solved your problem, click "accept as solution" so that others can benefit from it.