ChatGPT should be able to convert it for you, and save you a few days work, just fyi. I recently had it convert an entire program from Python into Java - it worked without any issues. Saved me a ton of time. (Still double check it