It looks like you're new here. If you want to get involved, click one of these buttons!
kite = KiteConnect(api_key=KITE_API_KEY)data = kite.generate_session(request_token, api_secret=KITE_API_SECRET)
You are referring to older documentation, refer latest V3 documentation here.