A Mathematical Framework for Python Loops: Modeling For-Loops as Finite Summations | Synapse