I use this method to increase the timeout using the REST API, so you may be able to translate it for the SDK. (sorry Python SDK isn't my strong point)
curl -X POST \
'https://bigip1.local/mgmt/shared/authn/login' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-d '{
"username":"admin",
"password":"admin",
"loginProviderName": "tmos"
}'
This will respond with a JSON body containing a token (token.token) Use this token on a second request to extend your timeout. If your token was ABCDEFGHIJKMLNOPQRSTUVWXYZ, your second request would look like this:
curl -X PATCH \
https://bigip1.local/mgmt/shared/authz/tokens/ABCDEFGHIJKMLNOPQRSTUVWXYZ \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-d '{
"timeout":"36000"
}'