Namecheap API calling issue

Hi Everyone,

I am calling the Namecheap domain check API via the postman. It gives me the correct result but when the same API calls with the python method it gives me the incorrect result.



Postman Response:

Python method Response :

Can anyone guide me?

I think the issue is the request getting response in XML format and direct display like the above python response image.

So, the question is how to get the XML response and how to render/display XML attributes?