attachment via python Rest API

attachment via python Rest API

I'm trying to attach a file and I only get the following code
{"code": 15, "message": make sure that F} \ u0012: o9__ Jq \ rsC P \ u0003L \ u0006 \ u0018 \ u0007L Agz $ $ \ u001CppX \ u0017u ~ \ u00117u ~ \ u001E \ u0010] 4 \ u0006F \ u0017 P] \ f \ u0010 \ u0012 q9- \ nj \ u0005 ֏ k | \ u000F \ u0003 {~ E \ u0001: W \ u000F RJv \ u0018 {x {} and 9 6 @ n \ r I4 vL \ u001A. \ u001A 5 - r <HZ \ u0005 Y \ u0019A \ u001F n T U W, i; N \ u0010 \ u0011 Y \ u000F a ^ OVn P1 <K8 G c G \ u0018B in 8AaGSF \ t is less than 100 characters. "}}
my code:
      headers = {"Authorization": "Zoho-oauthtoken " + token,"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"}
#path file
name = "C:\\Users\\Julio Rennan\\pdf_teste\\t.pdf"
files = {
'file': (open(name, 'rb'))
}
url ="https://books.zoho.com/api/v3/journals/{journal_id}/attachment?organization_id={id}"
url = url.replace("{journal_id}",id_journal).replace("{id}",id_org)
r = requests.post(url,headers=header,files=files)
print(r.text)