To me, it seems like there is potentially quite a good business case for writing
l = [None] * 10_000
instead of rewriting parts of your application in C (possibly hiring new staff to do so).