payload = {'user': 'myusername', 'password': 'mypassword'}
url = 'blahblah.blah'
with requests.Session() as s:
    r = s.post(url, data=payload)
Python Requests: Logging into website using POST and Cookies