I didn't say "dumb" I said "bananas".
And yes, knowing nothing else about their code base than A) It's in Python, and B) it's several million lines of code, I feel very confident that there is at least an order of magnitude too much of it. Instagram is just not doing anything that complicated.
(I should mention I specialize in maintaining and refactoring legacy Python code. I know what I'm talking about here.)