Add a general call that calls all the code and convert that call to a PyO3 call so that python can import the code as a module