You picked the wrong day to mess with assistants - it was basically down for 10 hours (but not throwing 404s)
If you edit your post and enclose your code in “```python” (using backticks) and then close it with ```, we might be able to read it…
Life will also be easier with the openai python module. It doesn’t mess up URLs.