Hello, I'm wondering why you want to convert the Mathematica code... is it because you need it to execute faster? If so, I would like to propose helping you get it to run faster. I have enough experience in Mathematica to know various techniques to try, etc.
Thank you for your consideration,
Don