just ensure the progress and don't be a jerk about someone idea.
Sorry but I'm not really being a jerk when I say what you are doing is waste of time, I wasted 2 month on WIFs, then I found out there is no shortcut unless we know the checksum which is 6 base58 characters even though the checksum is not part of the hex private key but knowing it could change everything.
Apology for calling you a spammer, you could post a one line example instead of 20 lines.
Btw, if I wanted to spend time on learning how to code, I couldn't learn the little I know about ECC. Imagine I spent 1 hour to download and install packages and then copy them one by one to the directory of my script just to realize I am not built for such things, every person has his own sets of skills, learning how to code is not mine to master.