This is extremely bad idea. I just read
brute_force_seed. Why are you even requesting a POST with safepal, submitting your seed phrase (!!!) to them? This is not secure. Also, why isn't there indentation in your python code?
Please use either FinderOuter which comes with a friendly user interface, or
btcrecover. Open-source means that every problem has to only be solved once.