Added methods for running and stopping the application main loop to the Python conduits (primarily to improve support for interactive matplotlib figures)