import requests
def autoriz():
session= requests.Session()
url='http://example.com/accounts/login/'
data={'username':'USER', 'password':'PASS'}
print(session.post(url, data=data).text)
def main():
autoriz()
if __name__=="__main__":
main()