declare `Py_ssize_t i` outside of loop initialization (#10091)
Fixes mypyc/mypyc#800
I believe this is the only instance of a variable declaration inside a for-loop initialization. Removing this may help with consistent compilation across different C compiler configurations. See linked issue for more details.