def start_threaded_server(*args, **kwargs):
 t = Thread(target=threaded_server, args=args, kwargs=kwargs)
 t.setDaemon(True)
 t.start()

def start_threaded_server ( * args , ** kwargs ) : t = Thread ( target = threaded_server , args = args , kwargs = kwargs ) t . setDaemon ( True ) t . start ( )
starts the threaded_server on a separate thread .