Compiles and runs OK
The code compiles and runs OK on my Ubuntu laptop once I'd installed the Python package NumPy. Could be interesting to download some text from Project Gutenberg to run through it - many of those old books are a bit iffy by current standards even if they were mainstream back then.