'Shuts down the callback server (if started) and restarts a new one.'

def restart_callback_server(self):

    self.shutdown_callback_server()
    self._callback_server = None
    self.start_callback_server(self.callback_server_parameters)
