I have used the command line option --no-python-subinterpreters, as was suggested in order to get numpy to work, but it still ends up breaking the code.
Below shows the code I am running and what happens with and without importing numpy
Without Numpy:

With Numpy:
