I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!
Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer.
To get the raw_response from the REST API (which is different from the SDK), there is a callback method. Otherwise, we can use the requests
module.
For the implementation details, please refer above response from @Bogdan Pechounov
I hope this helps. Thank you.
Please do not forget to click Accept Answer
and Yes
for was this answer helpful, wherever the information provided helps you. This can be beneficial to other community members.