Wallet got compromised, need help to transfer lp to another address

Hi, i got locked LP on unicrypt (https://app.uncx.network/amm/pancake-v2/locker). and my current wallet that have those LP got compromised and everytime bnb send there, it automatically send to other address in span of 3 second. so i need to transfer the ownership and to call those function i need to have gas fee available.
image

what the best approach so i can call the contract before my bnb got send somewhere else? im not familiar with web3 but familiar with python. is there a way for me to call the transfer ownership function via python script?

i already figure how to send bnb from my wallet faster than the bot, but i cant figure it out how to connect to unicrypt and call the transfer owner function