I think I can be a little late with the answer to this question.
The following solution worked for me-
On the Sharepoint web page, select "Library Tools"> "Library" >> "Open with the Explorer command" (this is a small icon in the lower right corner next to the "Connect to Office" command).
The address bar gives us the address to which we need to upload the file. Remember to remove "http:" or "https:" from the address. This address is the destination for downloading the file.
Subsequently, you can use the shutil package to download the file.
import shutil as sl sl.copy(source,destination)
This should help you upload files to Sharepoint.
Disclaimer- This works well in Python 3.6
Mohanty.pyt
source share