import requests
info = {'var1': 'this', 'var2': 'that'}
data = {'token': auth_token, 'info': info}
headers = {'Content-type': 'multipart/form-data'}
files = {'document': open('file_name.pdf', 'rb')}
r = requests.post(url, files=files, data=data, headers=headers)
Python Requests: Post JSON and file in single request