I am not sure if this will help, but my dealings with sharepoint has meant it has used NTLM as an authorisation protocol for which there is a python package on PyPi, you can also see if the connection is correct via postman package prior to attempting to replicate in python.
Regards
-------- *
“Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.”
-------- *
“Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.”