Based on ewbi's go calc excel formula parser http://ewbi.blogs.com/develops/popular/excelformulaparsing.html. This library contains methods to beautify an excel formula. This library also contains functions to convert an excel formula to JavaScript (ECMAScript) or C# and python.
For example, the simple legal formula:
results in:
I'm happy to help figure out but could use some pointers on how to adjust the algorithm.