It occurs to me that if the goal of normalizing code is to ease translation to another language, the target language affects how the code should be normalized. When translating Fortran to Python/NumPy, you want the Fortran code to use array operations, which typically have equivalents in NumPy, rather than loops, which are slow in Python. If the target is C, code with loops rather than array operations is preferable, since C has only loops. I earlier presented tools to translate Fortran code with array operations to code with loops, and back: Tool to translate from loops to array operations .
Transpilers to Fortran are better – I have been working on them
.