Python is just a means of accessing an API. If you can find a JSON request example (usually labeled REST) then it’s relatively easy to implement that in Thunkable. If not, then post a link to API documentation or info about what you have found and someone may be able to help you set up the blocks to use that.
There are several tutorials and demos about APIs. You may find mine helpful: