I've heard that Rust (https://www.rust-lang.org/) is an excellent choice for writing compiled Python extensions. I would like to try that out, but unfortunately Rust isn't yet available on PythonAnywhere. Do you have an image with Rust and its package manager Cargo (https://github.com/rust-lang/cargo) already installed?