https://discountedgerberprotectplus.blogspot.com/2024/01/getting-cant-pickle-local-object.html