Files are not checked in after upload a file to sharepoint using requests/requests_ntlm

Hi ,
I tried to upload file(excel file) to sharepoint using requests/requests_ntlm package.
Files are uploaded to sharepoint, but not checked in state.

import requests
from requests_ntlm import HttpNtlmAuth
session = requests.Session()
session.auth = HttpNtlmAuth('DOMAIN\\username','password', session)

put_url = 'https://secure.sp.kp.org/teams/scpmgcc/complete%20care/Proactive%20Care/POE_CCTE_TAT/2017%20Reports'
with open('p:/ccte/_ccte_tat_template.xls','rb') as fin:
    myFile = requests.put('{}/_ccte_tat_template.xls'.format(put_url), 
                          data=fin.read(), 
                          auth=session.auth, 
                          headers={'content-type':'application/vnd.ms-excel'})

Even i tried with the header information with the follwoing

my_headers = {
            'accept' : 'application/vnd.ms-excel;odata=verbose',
            'content-type' : 'application/vnd.ms-excel;odata=verbose',
            'odata' : 'verbose',
            'X-RequestForceAuthentication' : 'true'
        }

In both the options files are in checked out stage.
Please let me know how to make these files checked in.