@resserone13, I know that it is a very different approach and I am sorry for that, since it does not necessarily help you progress with yours. I tried to think what I would recommend for your code, and found I had to define a potential data model for myself first.
If there is something there that you can reuse, great. And please ask if I can clarify how something works or – even better – why I chose to do something in a specific way.
If it helps, I have also used Pythonista almost exclusively on my iPhone for years now. Of course the typing can be clumsy, but nothing prevents you from incrementally building something significant.