I'm still not quite sure what the scope of our site is. Would this be considered off-topic? It seems like it's mostly just Python. If not, why? I'm interested in understanding the principles/reasons so that I can apply them better.
Have you taken a look here: What questions should be definitely off-topic??
We have a clear list of what is allowed and what is isn't. You can ask Python related questions here so long as they are about Blender + Python.