We may move calculation logic into a companion mod which directly calls code in Java codebase and returns results to Python program, so we don't need to rewrite logic in Python. I have no mod dev experience so I don't know about the viability, but during implementation of this overhaul, I have managed to get results from Calculator and Helper in a functional test (which is run by a mod).
Progress
Should fix after done
Some ideas