You might want to also look at Shedskin, https://github.com/shedskin/shedskin which converts implicitly typed Python programs to C++
[1]: http://nuitka.net/
[2]: https://cython.org/
[3]: https://numba.pydata.org/
It doesn't compile to C but to an IR, but some ideas around typing might be similar.
Shedskin uses the Python interpreter if I remember correctly. I aim not to.
You might want to also look at Shedskin, https://github.com/shedskin/shedskin which converts implicitly typed Python programs to C++