Wouldn't it be easier to port the code to Julia? Had the chance to use it for some control theory problems and it feels much more modern and sane than Python - especially under the hood.
On the other hand multiple dispatch and the way imports are handled left me quite confused as a beginner.
But it's powerful and also very fast, especially for plots.