Fix worker-launch logic under Python 3