Authentication: Authenticate in SharePoint using the client ID and the Client Secret with the Python Requests module

I would like to authenticate to SharePoint using Python and the Requests package. This is what I have so fare:

from oauthlib.oauth2 import BackendApplicationClient
from requests_oauthlib import OAuth2Session

client_id = 'my_client_id'
client_secret = 'my_client_secret'
sitepath = ''

client = BackendApplicationClient(client_id=client_id)
oauth = OAuthSession(client=client)
token = oauth.fetch_token(token_url='super_long_token_url',

However, a "ValueError: provide the code parameters or response_authorization"

Ideally, I expected to use client_id and client_secret basically as a username and password. In any case, help would be appreciated.