How to access excel file from sharepoint using Python

I have tried using urllib to access excel file from sharepoint but getting 404 Forbidden.