To have a visible option to start/stop the server from the gui. At the end the multiprocessing library  was sufficient.